upgpkg: libversion 3.0.3-1
This commit is contained in:
parent
29ec0f8753
commit
c36d19d62e
1 changed files with 13 additions and 7 deletions
|
@ -2,21 +2,27 @@
|
|||
# Contributor: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
|
||||
|
||||
pkgname=libversion
|
||||
pkgver=3.0.2
|
||||
pkgver=3.0.3
|
||||
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')
|
||||
makedepends=('git' 'cmake')
|
||||
_commit='f851fec7d976820061952f6d90d3b60f2bae774b'
|
||||
source=("$pkgname::git+$url#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
|
||||
git describe --tags | sed 's/^v//'
|
||||
}
|
||||
|
||||
build() {
|
||||
cmake \
|
||||
-S "$pkgname-$pkgver" \
|
||||
-S "$pkgname" \
|
||||
-B build \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
|
||||
|
@ -32,5 +38,5 @@ check() {
|
|||
package() {
|
||||
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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue