diff options
author | Stefan Husmann | 2015-06-09 00:25:04 +0200 |
---|---|---|
committer | Stefan Husmann | 2015-06-09 00:25:04 +0200 |
commit | 242a3fdf63e162e5c6bd3a9e50f057bb63496e1a (patch) | |
tree | 4b7065981a8af0990e14eae4f7a4d9c0a7b9e84c | |
download | aur-242a3fdf63e162e5c6bd3a9e50f057bb63496e1a.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | halibut.install | 20 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..01427d592a1d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = halibut + pkgdesc = free document preparation system + pkgver = 1.1 + pkgrel = 1 + url = http://www.chiark.greenend.org.uk/~sgtatham/halibut/ + install = halibut.install + arch = i686 + arch = x86_64 + license = custom:MIT + depends = glibc + source = http://www.chiark.greenend.org.uk/~sgtatham/halibut/halibut-1.1.tar.gz + md5sums = bd2821b7a124b4b9aa356e12f09c4cb2 + +pkgname = halibut + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..34f890599f90 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> +pkgname=halibut +pkgver=1.1 +pkgrel=1 +pkgdesc="free document preparation system" +url="http://www.chiark.greenend.org.uk/~sgtatham/halibut/" +arch=('i686' 'x86_64') +license=('custom:MIT') +depends=('glibc') +source=(http://www.chiark.greenend.org.uk/~sgtatham/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('bd2821b7a124b4b9aa356e12f09c4cb2') +install=halibut.install + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's+/usr/local+/usr+' Makefile +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + prefix=/usr make + cd doc + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -Dm644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE + install -Dm755 build/$pkgname $pkgdir/usr/bin/$pkgname + cd doc + install -Dm644 $pkgname.1 $pkgdir/usr/share/man/man1/$pkgname.1 + for _i in $pkgname.info* + do + install -Dm644 $_i $pkgdir/usr/share/info/$_i + done + for _i in $pkgname{.ps,.pdf,.txt} + do + install -Dm644 $_i $pkgdir/usr/share/doc/$pkgname/$_i + done +} diff --git a/halibut.install b/halibut.install new file mode 100644 index 000000000000..5cde4d497209 --- /dev/null +++ b/halibut.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(halibut.info) + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} |