summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStephan Springer2021-04-26 16:02:57 +0200
committerStephan Springer2021-04-26 16:02:57 +0200
commit14f5c5d7f2b168f4e1165f899a4b785df6a1067e (patch)
tree19c2ba5f22e039c7dc158d94bedc102fc12a0ee3 /PKGBUILD
parentfdbe15824f47c1b95cf52fe60ff7cd68c499f3a0 (diff)
downloadaur-properties-cpp.tar.gz
update to version 0.0.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 17 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6f49c5a8c6b..5e979f5783c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,31 @@
-# Maintainer: Iwan Timmer <irtimmer@gmail.com>
+# Maintainer: Stephan Springer <buzo+arch@Lini.de>
+# Contributor: Iwan Timmer <irtimmer@gmail.com>
pkgname=properties-cpp
pkgdesc="A very simple convenience library for handling properties and signals in C++11"
-pkgver=0.0.1
-_pkgver=0.0.1+14.10.20140730
+pkgver=0.0.2
+_pkgver=0.0.2-6
pkgrel=1
-arch=('any')
+arch=(any)
url="https://launchpad.net/properties-cpp"
-license=('LGPL3')
-makedepends=('cmake')
-source=("https://launchpad.net/ubuntu/+archive/primary/+files/properties-cpp_$_pkgver.orig.tar.gz")
-md5sums=('449f95cc864ebe38a35848885ca1cb4b')
+license=(LGPL3)
+makedepends=(cmake)
+source=("https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/${pkgname}/${_pkgver}/${pkgname}_${pkgver}.orig.tar.gz")
+sha256sums=(d768aebeadd19aacd99270b9b2288cddb462f7c578ff1d0ea2848bab7b1eb02c)
prepare() {
- cd "$srcdir/${pkgname}-${_pkgver}"
-
- # Don't build tests
- truncate -s 0 tests/CMakeLists.txt
+ # Don't build tests, would need more dependencies.
+ echo > "$pkgname-$pkgver"/tests/CMakeLists.txt
}
build() {
- mkdir -p "$srcdir/${pkgname}-${_pkgver}/build"
- cd "$srcdir/${pkgname}-${_pkgver}/build"
-
- cmake .. -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
- make
+ cmake -B build -S "$pkgname-$pkgver" \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ cmake --build build
}
package() {
- cd "$srcdir/${pkgname}-${_pkgver}/build"
-
- make DESTDIR="$pkgdir/" install
+ DESTDIR="$pkgdir" cmake --install build
}