diff options
author | jxir | 2019-12-28 15:50:56 +0100 |
---|---|---|
committer | jxir | 2019-12-28 15:50:56 +0100 |
commit | 5f429a8626d006f7153ea6f8ad57ad9731d0252a (patch) | |
tree | 80defcb9f6f4a9089533868a7a1c263156844aba | |
parent | 2982dea24192efda203888650c2bd2c17c354f53 (diff) | |
download | aur-5f429a8626d006f7153ea6f8ad57ad9731d0252a.tar.gz |
Upstream port to CMake
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 18 insertions, 10 deletions
@@ -1,10 +1,11 @@ pkgbase = mucalc-git pkgdesc = Convenient calculator for the command line - pkgver = 1.7.r2.g070412f + pkgver = 2.0.r0.gdb4f01e pkgrel = 1 - url = https://git.marlam.de/gitweb/?p=mucalc.git + url = https://marlam.de/mucalc/ arch = x86_64 license = GPL3 + makedepends = cmake makedepends = git depends = muparser depends = readline @@ -1,14 +1,14 @@ # Maintainer: jxir <aur@jxir.de> pkgname=mucalc-git -pkgver=1.7.r2.g070412f +pkgver=2.0.r0.gdb4f01e pkgrel=1 pkgdesc="Convenient calculator for the command line" arch=('x86_64') -url="https://git.marlam.de/gitweb/?p=mucalc.git" +url="https://marlam.de/mucalc/" license=('GPL3') depends=('muparser' 'readline') -makedepends=('git') +makedepends=('cmake' 'git') provides=('mucalc') conflicts=('mucalc') source=('git+https://git.marlam.de/git/mucalc.git') @@ -16,15 +16,22 @@ sha256sums=('SKIP') pkgver() { cd "$srcdir/mucalc" - git describe --long --tags | sed 's/v//;s/\([^-]*-g\)/r\1/;s/-/./g' + git describe --long --tags | sed 's/mucalc-//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir/mucalc" + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. } build() { - cd "$srcdir/mucalc" - make + cd "$srcdir/mucalc/build" + make } package() { - cd "$srcdir/mucalc" - install -Dm755 mucalc "$pkgdir/usr/bin/mucalc" + cd "$srcdir/mucalc/build" + make DESTDIR="$pkgdir" install } |