1
0
Fork 0
mirror of https://aur.archlinux.org/ocp.git synced 2024-11-21 20:06:28 +00:00
This commit is contained in:
Mikael Eriksson 2020-02-05 19:53:22 +01:00 committed by Mikael Eriksson
parent 3c686977ef
commit e1c7ba248a
3 changed files with 27 additions and 40 deletions

View file

@ -1,13 +1,11 @@
pkgbase = ocp pkgbase = ocp
pkgdesc = Open Cubic Player pkgdesc = Open Cubic Player
pkgver = 0.1.21 pkgver = 0.2.1
pkgrel = 7 pkgrel = 1
url = http://stian.cubic.org/project-ocp.php url = https://github.com/mywave82/opencubicplayer
install = ocp.install
arch = i686 arch = i686
arch = x86_64 arch = x86_64
license = GPL license = GPL
makedepends = texinfo
makedepends = desktop-file-utils makedepends = desktop-file-utils
depends = libsidplay depends = libsidplay
depends = libxxf86vm depends = libxxf86vm
@ -18,8 +16,10 @@ pkgbase = ocp
depends = flac depends = flac
depends = sdl depends = sdl
depends = adplug depends = adplug
source = http://sourceforge.net/projects/opencubicplayer/files/ocp-0.1.21/ocp-0.1.21.tar.bz2 source = git+https://github.com/mywave82/opencubicplayer.git#tag=v0.2.1
md5sums = 558a6eacfadfd9c60c97a6e9c7f83f47 source = git+https://github.com/mywave82/timidity.git
md5sums = SKIP
md5sums = SKIP
pkgname = ocp pkgname = ocp

View file

@ -2,29 +2,33 @@
# Original PKGBUILD by: berkus [berkus_at_madfire_dot_net] # Original PKGBUILD by: berkus [berkus_at_madfire_dot_net]
pkgname=ocp pkgname=ocp
pkgver=0.1.21 pkgver=0.2.1
pkgrel=7 pkgrel=1
pkgdesc="Open Cubic Player" pkgdesc="Open Cubic Player"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://stian.cubic.org/project-ocp.php" url="https://github.com/mywave82/opencubicplayer"
depends=('libsidplay' 'libxxf86vm' 'libvorbis' 'libxpm' 'alsa-lib' 'libmad' 'flac' 'sdl' 'adplug') depends=('libsidplay' 'libxxf86vm' 'libvorbis' 'libxpm' 'alsa-lib' 'libmad' 'flac' 'sdl' 'adplug')
makedepends=('texinfo' 'desktop-file-utils') makedepends=('desktop-file-utils')
license=('GPL') license=('GPL')
source=(http://sourceforge.net/projects/opencubicplayer/files/ocp-$pkgver/ocp-$pkgver.tar.bz2) source=(git+https://github.com/mywave82/opencubicplayer.git#tag=v${pkgver}
md5sums=('558a6eacfadfd9c60c97a6e9c7f83f47') git+https://github.com/mywave82/timidity.git)
install=ocp.install md5sums=('SKIP'
'SKIP')
prepare() {
cd opencubicplayer
git submodule init
git config submodule.playgmi/timidity-git.url $srcdir/timidity
git submodule update
}
build() { build() {
cd $srcdir/$pkgname-$pkgver cd opencubicplayer
sed -i "4592c2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]|3.[0-9]|3.[0-9].[0-9]-*|4.*|5.*|6.*|7.*|8.*)" configure ./configure --prefix=/usr --sysconfdir=/etc
./configure --prefix=/usr --sysconfdir=/etc make DESTDIR=$pkgdir
make -j1 DESTDIR=$pkgdir
} }
package() { package() {
cd $srcdir/$pkgname-$pkgver cd opencubicplayer
make -j1 DESTDIR=$pkgdir install make 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
} }

View file

@ -1,17 +0,0 @@
## 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: