diff options
Diffstat (limited to 'pcr/libbinio')
-rw-r--r-- | pcr/libbinio/PKGBUILD | 36 | ||||
-rw-r--r-- | pcr/libbinio/libbinio.install | 22 |
2 files changed, 58 insertions, 0 deletions
diff --git a/pcr/libbinio/PKGBUILD b/pcr/libbinio/PKGBUILD new file mode 100644 index 000000000..329b0d831 --- /dev/null +++ b/pcr/libbinio/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): Mikael Eriksson <mikael_eriksson@miffe.org> + +pkgname=libbinio +pkgver=1.4 +pkgrel=1 +pkgdesc="Binary I/O C++ class library" +url="http://libbinio.sourceforge.net" +arch=('i686' 'x86_64') +license=('LGPL') # LGPLv2.1+ +depends=('gcc-libs') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 eof.diff) +install=libbinio.install +md5sums=('517ded8c7ce9b3de0f84b1db74a2ebda' + '457b5d73e4934adfecf5b75b5f16a227') + +prepare() { + cd "$srcdir/libbinio-$pkgver/src" + + patch -p0 -i "$srcdir/eof.diff" +} + +build() { + cd "$srcdir/libbinio-$pkgver" + + ./configure --prefix=/usr --infodir=/usr/share/info + make +} + +package() { + cd "$srcdir/libbinio-$pkgver" + + make DESTDIR="$pkgdir" install +} + +# vim:set ts=8 sts=2 sw=2 et: diff --git a/pcr/libbinio/libbinio.install b/pcr/libbinio/libbinio.install new file mode 100644 index 000000000..895af6344 --- /dev/null +++ b/pcr/libbinio/libbinio.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(libbinio.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 +} + +# vim:set ts=2 sw=2 et: |