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

Update to 0.2.100.r1.ddedfe7 and finalisation of PKGBUILD refactor.

This commit is contained in:
Xavier Moffett 2022-09-23 22:00:24 -04:00
parent 38f650ee0f
commit d930733122
2 changed files with 16 additions and 12 deletions

View file

@ -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

View file

@ -1,17 +1,19 @@
# Maintainer: Xavier (sapphirus at azorium dot net)
# Original Maintainer: Ossi Saukko <osaukko at gmail dot com>
_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
}