1
0
Fork 0
mirror of https://aur.archlinux.org/ocp.git synced 2024-11-24 13:16:30 +00:00
This commit is contained in:
Mikael Eriksson 2015-06-08 15:54:40 +02:00 committed by Mikael Eriksson
commit 332d6346ea
3 changed files with 71 additions and 0 deletions

25
.SRCINFO Normal file
View file

@ -0,0 +1,25 @@
pkgbase = ocp
pkgdesc = Open Cubic Player
pkgver = 0.1.21
pkgrel = 4
url = http://stian.cubic.org/project-ocp.php
install = ocp.install
arch = i686
arch = x86_64
license = GPL
makedepends = texinfo
makedepends = desktop-file-utils
depends = libsidplay
depends = libxxf86vm
depends = libvorbis
depends = libxpm
depends = alsa-lib
depends = libmad
depends = flac
depends = sdl
depends = adplug
source = http://sourceforge.net/projects/opencubicplayer/files/ocp-0.1.21/ocp-0.1.21.tar.bz2
md5sums = 558a6eacfadfd9c60c97a6e9c7f83f47
pkgname = ocp

29
PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
# Original PKGBUILD by: 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')
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() {
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
}

17
ocp.install Normal file
View file

@ -0,0 +1,17 @@
## arg 1: the new package version
post_install() {
test -x /usr/bin/gtk-update-icon-cache && /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
test -x /usr/bin/gtk-update-icon-cache && /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor
}
## arg 1: the old package version
post_remove() {
test -x /usr/bin/gtk-update-icon-cache && /usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor
}
# vim:set ts=2 sw=2 et: