diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-07 00:53:46 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-07 00:53:46 +0100 |
commit | 6e2a377abe38d5134a154ea10950c483c5bac147 (patch) | |
tree | 731d74d72ed49cf59001581eca2c310d01621df0 | |
parent | adopt xcftools (diff) | |
download | aur-packages-6e2a377abe38d5134a154ea10950c483c5bac147.tar.gz aur-packages-6e2a377abe38d5134a154ea10950c483c5bac147.tar.bz2 aur-packages-6e2a377abe38d5134a154ea10950c483c5bac147.tar.xz |
adopt nafe
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | nafe/PKGBUILD | 25 | ||||
-rwxr-xr-x | nafe/watch | 20 |
2 files changed, 45 insertions, 0 deletions
diff --git a/nafe/PKGBUILD b/nafe/PKGBUILD new file mode 100644 index 0000000..2947000 --- /dev/null +++ b/nafe/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +# Previous maintainer: crshd <crshd@mail.com> + +pkgname=nafe +pkgver=0.1 +pkgrel=1 +pkgdesc="Toolset to translate PSF format consolefonts into text files and text files into PSF files." +url="http://nafe.sourceforge.net" +arch=('x86_64' 'i686') +license=('GPL2') +source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz") +md5sums=('c1066cf003a46bb3908f322c7ed9d529') + + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + make all +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + mkdir -p -- "${pkgdir}/usr/bin" + cp -- txt2psf psf2txt "${pkgdir}/usr/bin" +} + diff --git a/nafe/watch b/nafe/watch new file mode 100755 index 0000000..776dfd1 --- /dev/null +++ b/nafe/watch @@ -0,0 +1,20 @@ +#!/bin/sh + +[ -f 'version' ] && rm 'version' +wget http://sourceforge.net/projects/nafe/files/nafe -O - | grep -o 'Download nafe-[^)]*B)' > version +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + md5sum < version > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'nafe' + fi + rm version +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'nafe (unfetchable)' +fi + |