Template
1
0
Fork 0
mirror of https://aur.archlinux.org/ocp-git.git synced 2024-11-22 12:16:29 +00:00
ocp-git/PKGBUILD

56 lines
1.3 KiB
Text
Raw Normal View History

# Maintainer: Xavier (sapphirus at azorium dot net)
# Original Maintainer: Ossi Saukko <osaukko at gmail dot com>
_pkgbdir=opencubicplayer
2015-09-09 13:51:44 +00:00
pkgname=ocp-git
pkgver=0.2.99.r43.1f55a2e
pkgrel=1
pkgdesc="Open Cubic Player (GIT Version)"
2015-09-09 13:51:44 +00:00
arch=('i686' 'x86_64')
url="https://stian.cubic.org/project-ocp.php"
2015-09-09 13:51:44 +00:00
license=('GPL')
depends=('libxxf86vm'
'libxpm'
'alsa-lib'
'sdl2'
'flac'
'libvorbis'
'libmad'
'libjpeg-turbo'
'libpng'
'freetype2'
'ttf-unifont'
'libdiscid'
'cjson')
makedepends=('git'
'xa'
'desktop-file-utils')
makedepends=('desktop-file-utils' 'git' 'xa')
source=("git+https://github.com/mywave82/opencubicplayer.git")
md5sums=('SKIP')
2015-09-09 13:51:44 +00:00
pkgver() {
cd $_pkgbdir
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
}
prepare() {
cd $_pkgbdir
git submodule init
git submodule update --init --recursive
2015-09-09 13:51:44 +00:00
}
build() {
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
make DESTDIR="$pkgdir"
2015-09-09 13:51:44 +00:00
}
package() {
cd $_pkgbdir
make DESTDIR="$pkgdir" install
2015-09-09 13:51:44 +00:00
}