diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-05 18:45:36 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-05-05 18:45:52 -0400 |
commit | 532f991fcd33ced9c1831c3eac32b40bbe38fc47 (patch) | |
tree | d916dc670143a21783dc49f0dfaa93a960c948b7 /pcr/adplug | |
parent | 622fd5d8456c277f10830387f6123d150f0e7b36 (diff) | |
download | abslibre-532f991fcd33ced9c1831c3eac32b40bbe38fc47.tar.gz abslibre-532f991fcd33ced9c1831c3eac32b40bbe38fc47.tar.bz2 abslibre-532f991fcd33ced9c1831c3eac32b40bbe38fc47.zip |
add pcr/ocp and dependencies
Diffstat (limited to 'pcr/adplug')
-rw-r--r-- | pcr/adplug/PKGBUILD | 28 | ||||
-rw-r--r-- | pcr/adplug/adplug.install | 22 |
2 files changed, 50 insertions, 0 deletions
diff --git a/pcr/adplug/PKGBUILD b/pcr/adplug/PKGBUILD new file mode 100644 index 000000000..69159133a --- /dev/null +++ b/pcr/adplug/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): Mikael Eriksson <mikael_eriksson@miffe.org> + +pkgname=adplug +pkgver=2.2.1 +pkgrel=1 +pkgdesc="AdLib sound player library" +arch=('i686' 'x86_64') +url="http://adplug.sourceforge.net/" +license=('LGPL') # LGPLv2.1+ +depends=('libbinio') +install=adplug.install +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2) +md5sums=('8f815fd5d254de0fe5df818df9d1d8af') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + rm "$pkgdir/usr/share/info/dir" +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/adplug/adplug.install b/pcr/adplug/adplug.install new file mode 100644 index 000000000..0600aecc3 --- /dev/null +++ b/pcr/adplug/adplug.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(libadplug.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: |