summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Severance2018-12-24 01:54:12 -0500
committerChris Severance2018-12-24 01:54:12 -0500
commitba5d989207c4c058fe96d598f5a86822bc85c600 (patch)
tree99cccbf12ac41dcc4b8151a3fde5399966342eb0 /PKGBUILD
parent394dc0ea4c923e5f882bda24d4b80859090d7659 (diff)
downloadaur-ckmame.tar.gz
autu: Update to 1.0-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 21 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f604a7435df..141482bf342 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,42 +5,51 @@
set -u
pkgname='ckmame'
-pkgver='0.12'
+pkgver='1.0'
pkgrel='1'
pkgdesc='check ROM sets for MAME'
arch=('i686' 'x86_64')
url='https://www.nih.at/ckmame/'
license=('custom')
depends=('zlib' 'libxml2' 'libzip' 'sqlite3')
+makedepends=('cmake')
+checkdepends=('perl')
#_verwatch=("${url}" '.*Current version: \([0-9\.]\+\).*' 'f')
_verwatch=("${url}" "${pkgname}-\([0-9\.]\+\)\.tar\.xz" 'l')
+_srcdir="${pkgname}-${pkgver}/build"
source=("https://nih.at/ckmame/${pkgname}-${pkgver}.tar.xz")
-sha256sums=('b9d7b131b20c5bc745f358be610c9aacf456e59767b05f88ddbe453f23b5a512')
+sha256sums=('efb294ec9276791c74345187d7e180fc214dbab84694ea26530179e7d4686e55')
-prepare() {
+build() {
set -u
- cd "${pkgname}-${pkgver}"
- ./configure --prefix='/usr'
+ if [ ! -d "${_srcdir}" ]; then
+ mkdir -p "${_srcdir}"
+ cd "${_srcdir}"
+ cmake .. -DCMAKE_INSTALL_PREFIX='/usr' -DDOCUMENTATION_FORMAT='man'
+ cd "${srcdir}"
+ fi
+ cd "${_srcdir}"
+ make VERBOSE=1
set +u
}
-build() {
+check() {
set -u
- cd "${pkgname}-${pkgver}"
- local _nproc="$(nproc)"; _nproc=$((_nproc>8?8:_nproc))
- nice make -s -j "${_nproc}"
+ cd "${_srcdir}"
+ make test
set +u
}
package() {
set -u
- cd "${pkgname}-${pkgver}"
+ cd "${_srcdir}"
make DESTDIR="${pkgdir}" install
+ cd ..
# Install a license file
- sed -n '3,31p' 'src/ckmame.c' > 'COPYING'
- install -Dm644 'COPYING' -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
set +u
}
+
set +u