diff --git a/.SRCINFO b/.SRCINFO index fdef788..afc514a 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = ocp-git pkgdesc = Open Cubic Player (GIT Version) - pkgver = 0.2.99.r66.68249a1 + pkgver = 0.2.100.r1.ddedfe7 pkgrel = 1 url = https://stian.cubic.org/project-ocp.php install = ocp.install @@ -24,8 +24,9 @@ pkgbase = ocp-git depends = ttf-unifont depends = libdiscid depends = cjson + provides = ocp=0.2.100.r1.ddedfe7 conflicts = ocp - source = git+https://github.com/mywave82/opencubicplayer.git + source = ocp::git+https://github.com/mywave82/opencubicplayer.git md5sums = SKIP pkgname = ocp-git diff --git a/PKGBUILD b/PKGBUILD index 9fd8373..a7fde1e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,17 +1,19 @@ # Maintainer: Xavier (sapphirus at azorium dot net) # Original Maintainer: Ossi Saukko -_pkgbdir=opencubicplayer -pkgname=ocp-git -pkgver=0.2.99.r66.68249a1 +_pkgbase=ocp +pkgname=${_pkgbase}-git +pkgver=0.2.100.r1.ddedfe7 pkgrel=1 pkgdesc="Open Cubic Player (GIT Version)" arch=('i686' 'x86_64') url="https://stian.cubic.org/project-ocp.php" license=('GPL') -install=ocp.install +install=${_pkgbase}.install + +conflicts=(${_pkgbase}) +provides=(${_pkgbase}=${pkgver}) -conflicts=('ocp') depends=('hicolor-icon-theme' 'libxxf86vm' @@ -32,27 +34,28 @@ makedepends=('git' 'xa' 'desktop-file-utils') -source=("git+https://github.com/mywave82/opencubicplayer.git") +source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git) md5sums=('SKIP') + pkgver() { - cd $_pkgbdir + cd $_pkgbase echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')" } prepare() { - cd $_pkgbdir + cd $_pkgbase git submodule init git submodule update --init --recursive } build() { - cd $_pkgbdir + cd $_pkgbase ./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" } package() { - cd $_pkgbdir + cd $_pkgbase make DESTDIR="$pkgdir" install }