arch-pkgs/libversion/PKGBUILD

37 lines
999 B
Text
Raw Normal View History

2021-12-14 02:10:10 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
pkgname=libversion
2022-10-22 22:55:23 +00:00
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")
2022-10-22 22:55:23 +00:00
sha512sums=('65cc975690da8ba27563553014a49dde3d8f57331a30ee1b6b5a00c49b3b63a2df17ccb78a0e9f24fbf1369f59647ea253129c860ecd0da7cbd5406a0bdccd6a')
b2sums=('e345aea49dd9968ab2a39e4c8544b5be3249026eea0816f5da46cd1ad4a7f8ccf71566293befe8cfe58f55cac3534c8b8483f4e7ce9dd87bb40c0fab54ef0f2e')
2022-10-22 22:55:23 +00:00
build() {
cmake \
-S "$pkgname-$pkgver" \
2022-10-22 22:55:23 +00:00
-B build \
-D CMAKE_INSTALL_PREFIX=/usr
cmake --build build
}
2021-12-14 02:10:10 +00:00
check() {
cd build
2022-10-22 22:55:23 +00:00
2021-12-14 02:10:10 +00:00
ctest --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -vDm644 "$pkgname-$pkgver/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
}