1
0
Fork 0
mirror of https://aur.archlinux.org/ocp.git synced 2024-11-21 20:06:28 +00:00

Overhauled PKGBUILD with update to 0.2.99

This commit is contained in:
Xavier Moffett 2022-09-23 12:47:02 -04:00
parent 17d5377fb7
commit 5a8ed16c40
3 changed files with 68 additions and 55 deletions

View file

@ -1,38 +1,31 @@
pkgbase = ocp pkgbase = ocp
pkgdesc = Open Cubic Player pkgdesc = Open Cubic Player
pkgver = 0.2.90 pkgver = 0.2.99
pkgrel = 1 pkgrel = 1
url = https://github.com/mywave82/opencubicplayer url = https://stian.cubic.org/project-ocp.php
install = ocp.install
arch = i686 arch = i686
arch = x86_64 arch = x86_64
license = GPL license = GPL
makedepends = desktop-file-utils
makedepends = git makedepends = git
makedepends = xa makedepends = xa
makedepends = patch makedepends = desktop-file-utils
depends = hicolor-icon-theme
depends = libxxf86vm depends = libxxf86vm
depends = libvorbis
depends = libxpm depends = libxpm
depends = alsa-lib depends = alsa-lib
depends = libmad
depends = flac
depends = sdl2 depends = sdl2
depends = adplug depends = flac
depends = libvorbis
depends = libmad
depends = libjpeg-turbo depends = libjpeg-turbo
depends = libpng depends = libpng
depends = freetype2 depends = freetype2
depends = ttf-unifont depends = ttf-unifont
source = git+https://github.com/mywave82/opencubicplayer.git#tag=v0.2.90 depends = libdiscid
source = git+https://github.com/mywave82/timidity.git depends = cjson
source = git+https://github.com/mywave82/sidplay-residfp-ocp.git conflicts = ocp-git
source = git+https://github.com/libsidplayfp/exsid-driver.git source = git+https://github.com/mywave82/opencubicplayer.git#tag=v0.2.99
source = git+https://github.com/mywave82/resid.git
source = fix-unifont.diff
md5sums = SKIP md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = SKIP
md5sums = 9eb83ffbabec3f1dd66f66c9100a9c08
pkgname = ocp pkgname = ocp

View file

@ -1,54 +1,53 @@
# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org> # Maintainer: Xavier (sapphirus at azorium dot net)
# Original PKGBUILD by: berkus [berkus_at_madfire_dot_net] # Original Maintainer: Ossi Saukko <osaukko at gmail dot com>
_pkgbdir=opencubicplayer
pkgname=ocp pkgname=ocp
pkgver=0.2.90 pkgver=0.2.99
pkgrel=1 pkgrel=1
pkgdesc="Open Cubic Player" pkgdesc="Open Cubic Player"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="https://github.com/mywave82/opencubicplayer" url="https://stian.cubic.org/project-ocp.php"
depends=('libxxf86vm' 'libvorbis' 'libxpm' 'alsa-lib' 'libmad' 'flac' 'sdl2' 'adplug' 'libjpeg-turbo' 'libpng' 'freetype2' 'ttf-unifont')
makedepends=('desktop-file-utils' 'git' 'xa' 'patch')
license=('GPL') license=('GPL')
source=(git+https://github.com/mywave82/opencubicplayer.git#tag=v${pkgver} install=ocp.install
git+https://github.com/mywave82/timidity.git
git+https://github.com/mywave82/sidplay-residfp-ocp.git conflicts=('ocp-git')
git+https://github.com/libsidplayfp/exsid-driver.git
git+https://github.com/mywave82/resid.git depends=('hicolor-icon-theme'
fix-unifont.diff) 'libxxf86vm'
md5sums=('SKIP' 'libxpm'
'SKIP' 'alsa-lib'
'SKIP' 'sdl2'
'SKIP' 'flac'
'SKIP' 'libvorbis'
'9eb83ffbabec3f1dd66f66c9100a9c08') 'libmad'
'libjpeg-turbo'
'libpng'
'freetype2'
'ttf-unifont'
'libdiscid'
'cjson')
makedepends=('git'
'xa'
'desktop-file-utils')
source=(git+https://github.com/mywave82/opencubicplayer.git#tag=v${pkgver})
md5sums=('SKIP')
prepare() { prepare() {
cd opencubicplayer cd $_pkgbdir
patch -p1 -i "$srcdir/fix-unifont.diff"
git submodule init git submodule init
git config submodule.playgmi/timidity-git.url "$srcdir/timidity" git submodule update --init --recursive
git config submodule.playsid/sidplayfp-git.url "$srcdir/sidplay-residfp-ocp"
git submodule update
cd playsid/libsidplayfp-git
git submodule init
git config submodule.src/builders/exsid-builder/driver.url "$srcdir/exsid-driver"
git config submodule.src/builders/resid-builder/resid.url "$srcdir/resid"
git submodule update
} }
build() { build() {
cd opencubicplayer cd $_pkgbdir
./configure --prefix=/usr --sysconfdir=/etc --with-unifontdir=/usr/share/fonts/Unifont --with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf --with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf --with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
./configure --prefix=/usr --sysconfdir=/etc --with-unifontdir=/usr/share/fonts/Unifont
make DESTDIR="$pkgdir" make DESTDIR="$pkgdir"
} }
package() { package() {
cd opencubicplayer cd $_pkgbdir
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }

21
ocp.install Normal file
View file

@ -0,0 +1,21 @@
infodir=usr/share/info
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
update-desktop-database -q
[ -x usr/bin/install-info ] || return 0
install-info $infodir/ocp.info.gz $infodir/dir 2> /dev/null
}
post_upgrade() {
post_install
}
pre_remove() {
install-info --delete $infodir/ocp.info.gz $infodir/dir 2> /dev/null
}
post_remove() {
update-desktop-database -q
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}