aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nafe/PKGBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/nafe/PKGBUILD b/nafe/PKGBUILD
index 94a3213..3efa9b1 100644
--- a/nafe/PKGBUILD
+++ b/nafe/PKGBUILD
@@ -1,9 +1,9 @@
-# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@kth.se>
# Previous maintainer: crshd <crshd@mail.com>
pkgname=nafe
pkgver=0.1
-pkgrel=1
+pkgrel=2
pkgdesc="Toolset to translate PSF format consolefonts into text files and text files into PSF files."
url="https://nafe.sourceforge.net"
arch=('x86_64' 'i686')
@@ -12,12 +12,22 @@ source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgna
sha256sums=('06d6a9b63f4acff046695c676633895e9d0ae95444de9273b126eace6677102b')
-build() {
+prepare () {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ printf '%s\n' '#include <stdlib.h>' | cat - txt2psf.c > txt2psf.c.fixed
+ mv txt2psf.c.fixed txt2psf.c
+
+ printf '%s\n' '#include <stdlib.h>' | cat - psf2txt.c > psf2txt.c.fixed
+ mv psf2txt.c.fixed psf2txt.c
+}
+
+build () {
cd "${srcdir}/${pkgname}-${pkgver}"
make all
}
-package() {
+package () {
cd "${srcdir}/${pkgname}-${pkgver}"
mkdir -p -- "${pkgdir}/usr/bin"
cp -- txt2psf psf2txt "${pkgdir}/usr/bin"