36 lines
999 B
Bash
36 lines
999 B
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
# Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
|
|
|
|
pkgname=libversion
|
|
pkgver=3.0.2
|
|
pkgrel=1
|
|
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")
|
|
sha512sums=('65cc975690da8ba27563553014a49dde3d8f57331a30ee1b6b5a00c49b3b63a2df17ccb78a0e9f24fbf1369f59647ea253129c860ecd0da7cbd5406a0bdccd6a')
|
|
b2sums=('e345aea49dd9968ab2a39e4c8544b5be3249026eea0816f5da46cd1ad4a7f8ccf71566293befe8cfe58f55cac3534c8b8483f4e7ce9dd87bb40c0fab54ef0f2e')
|
|
|
|
build() {
|
|
cmake \
|
|
-S "$pkgname-$pkgver" \
|
|
-B build \
|
|
-D CMAKE_INSTALL_PREFIX=/usr
|
|
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
|
|
ctest --output-on-failure
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
install -vDm644 "$pkgname-$pkgver/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|