2021-12-14 02:10:10 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
# Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
|
2021-07-24 10:00:43 +00:00
|
|
|
|
|
|
|
pkgname=libversion
|
|
|
|
pkgver=3.0.1
|
2021-12-14 02:10:10 +00:00
|
|
|
pkgrel=2
|
2021-07-24 10:00:43 +00:00
|
|
|
pkgdesc='Advanced version string comparison library'
|
|
|
|
url='https://github.com/repology/libversion'
|
|
|
|
license=('MIT')
|
|
|
|
arch=('x86_64')
|
|
|
|
depends=('gcc-libs')
|
|
|
|
makedepends=('cmake')
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
2021-12-14 02:10:10 +00:00
|
|
|
sha512sums=('b7b10d2d71eba53972e51cf25b32ef429f703efc83810e4f480db34216bd0dc43382a492af947f6f3da65e1a3b939c9a61fe90f9d1d3b1737a5ba7615934d5b8')
|
2021-07-24 10:00:43 +00:00
|
|
|
b2sums=('d65f4d415e5c17abf49b641bb7ecee08ccd07c747bfddb43c6d0586a6d48bbb4e87b607f0812abb3da7c5696e928c79ebd1c0a00d7baaf5be75caffe7b18a2e7')
|
|
|
|
|
2021-12-14 02:10:10 +00:00
|
|
|
prepare() {
|
2021-07-24 10:00:43 +00:00
|
|
|
cmake \
|
|
|
|
-B build \
|
|
|
|
-S "$pkgname-$pkgver" \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr
|
2021-12-14 02:10:10 +00:00
|
|
|
}
|
2021-07-24 10:00:43 +00:00
|
|
|
|
2021-12-14 02:10:10 +00:00
|
|
|
build() {
|
2021-07-24 10:00:43 +00:00
|
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
|
2021-12-14 02:10:10 +00:00
|
|
|
check() {
|
|
|
|
cd build
|
|
|
|
ctest --output-on-failure
|
|
|
|
}
|
|
|
|
|
2021-07-24 10:00:43 +00:00
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
|
|
|
|
install -vDm644 "$pkgname-$pkgver/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
}
|