From 532f991fcd33ced9c1831c3eac32b40bbe38fc47 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 5 May 2015 18:45:36 -0400 Subject: add pcr/ocp and dependencies --- pcr/adplug/PKGBUILD | 28 ++++++++++++++++++++++++++++ pcr/adplug/adplug.install | 22 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 pcr/adplug/PKGBUILD create mode 100644 pcr/adplug/adplug.install (limited to 'pcr/adplug') 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 +# Maintainer (AUR): Mikael Eriksson + +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: -- cgit v1.2.3