aboutsummaryrefslogtreecommitdiffstats
path: root/nafe
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-07-18 11:16:25 +0200
committerMattias Andrée <maandree@kth.se>2024-07-18 11:16:25 +0200
commit7bde2ad9c9da28f92d42c390807543afcae7a908 (patch)
tree9b00eda89248b3984606d4c67eb69c5ec52542dc /nafe
parentlibar2simplified: fix checksum (diff)
downloadaur-packages-7bde2ad9c9da28f92d42c390807543afcae7a908.tar.gz
aur-packages-7bde2ad9c9da28f92d42c390807543afcae7a908.tar.bz2
aur-packages-7bde2ad9c9da28f92d42c390807543afcae7a908.tar.xz
Fix nafe so that it compiles
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'nafe')
-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"