upgpkg: libversion 3.0.3-1

This commit is contained in:
George Rawlinson 2023-01-15 19:44:23 +13:00
parent 29ec0f8753
commit c36d19d62e
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -2,21 +2,27 @@
# Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net> # Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
pkgname=libversion pkgname=libversion
pkgver=3.0.2 pkgver=3.0.3
pkgrel=1 pkgrel=1
pkgdesc='Advanced version string comparison library' pkgdesc='Advanced version string comparison library'
url='https://github.com/repology/libversion' url='https://github.com/repology/libversion'
license=('MIT') license=('MIT')
arch=('x86_64') arch=('x86_64')
depends=('gcc-libs') depends=('gcc-libs')
makedepends=('cmake') makedepends=('git' 'cmake')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") _commit='f851fec7d976820061952f6d90d3b60f2bae774b'
sha512sums=('65cc975690da8ba27563553014a49dde3d8f57331a30ee1b6b5a00c49b3b63a2df17ccb78a0e9f24fbf1369f59647ea253129c860ecd0da7cbd5406a0bdccd6a') source=("$pkgname::git+$url#commit=$_commit")
b2sums=('e345aea49dd9968ab2a39e4c8544b5be3249026eea0816f5da46cd1ad4a7f8ccf71566293befe8cfe58f55cac3534c8b8483f4e7ce9dd87bb40c0fab54ef0f2e') b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() { build() {
cmake \ cmake \
-S "$pkgname-$pkgver" \ -S "$pkgname" \
-B build \ -B build \
-D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_INSTALL_PREFIX=/usr
@ -32,5 +38,5 @@ check() {
package() { package() {
DESTDIR="$pkgdir" cmake --install build DESTDIR="$pkgdir" cmake --install build
install -vDm644 "$pkgname-$pkgver/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname" install -vDm644 "$pkgname/COPYING" -t "$pkgdir/usr/share/licenses/$pkgname"
} }