summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-05 18:45:36 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-05-05 18:45:52 -0400
commit532f991fcd33ced9c1831c3eac32b40bbe38fc47 (patch)
treed916dc670143a21783dc49f0dfaa93a960c948b7 /pcr
parent622fd5d8456c277f10830387f6123d150f0e7b36 (diff)
add pcr/ocp and dependencies
Diffstat (limited to 'pcr')
-rw-r--r--pcr/adplug/PKGBUILD28
-rw-r--r--pcr/adplug/adplug.install22
-rw-r--r--pcr/libbinio/PKGBUILD36
-rw-r--r--pcr/libbinio/libbinio.install22
-rw-r--r--pcr/ocp/PKGBUILD32
-rw-r--r--pcr/ocp/ocp.install27
6 files changed, 167 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:
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:
diff --git a/pcr/ocp/PKGBUILD b/pcr/ocp/PKGBUILD
new file mode 100644
index 000000000..59c38a052
--- /dev/null
+++ b/pcr/ocp/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Maintainer (AUR): Mikael Eriksson <mikael_eriksson@miffe.org>
+# Contributor (AUR): berkus [berkus_at_madfire_dot_net]
+
+pkgname=ocp
+pkgver=0.1.21
+pkgrel=4
+pkgdesc="Open Cubic Player"
+arch=('i686' 'x86_64')
+url="http://stian.cubic.org/project-ocp.php"
+depends=('libsidplay' 'libxxf86vm' 'libvorbis' 'libxpm' 'alsa-lib' 'libmad' 'flac' 'sdl' 'adplug')
+makedepends=('texinfo' 'desktop-file-utils')
+license=('GPL') # GPLv2+
+source=(http://sourceforge.net/projects/opencubicplayer/files/ocp-$pkgver/ocp-$pkgver.tar.bz2)
+md5sums=('558a6eacfadfd9c60c97a6e9c7f83f47')
+install=ocp.install
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make -j1 DESTDIR="$pkgdir"
+}
+
+package() {
+ depends+=('hicolor-icon-theme' 'xdg-utils')
+ cd "$srcdir/$pkgname-$pkgver"
+ make -j1 DESTDIR="$pkgdir" install
+ install -m755 playopl/playopl.so "$pkgdir"/usr/lib/ocp-0.1.21/playopl.so
+ install -m755 playopl/opltype.so "$pkgdir"/usr/lib/ocp-0.1.21/autoload/30-opltype.so
+ rm "$pkgdir"/usr/share/info/dir
+ touch "$pkgdir"/usr/share/ocp/ultradir/.keep
+}
diff --git a/pcr/ocp/ocp.install b/pcr/ocp/ocp.install
new file mode 100644
index 000000000..0b4b28a47
--- /dev/null
+++ b/pcr/ocp/ocp.install
@@ -0,0 +1,27 @@
+infodir=usr/share/info
+filelist=(ocp.info)
+
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ [[ -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
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+}
+
+# vim:set ts=2 sw=2 et: