diff options
author | Daniel Bermond | 2023-02-04 21:42:32 -0300 |
---|---|---|
committer | Daniel Bermond | 2023-02-04 21:42:32 -0300 |
commit | 62c33a26b82b705095cd55112a841f4c87714e98 (patch) | |
tree | 7a17b4f6ace1e8ee6a72c97a983765a95b0f1db9 | |
parent | fa03693403fb56baa274f04001ca97b9110559fc (diff) | |
download | aur-62c33a26b82b705095cd55112a841f4c87714e98.tar.gz |
Match latest upstream changes
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 8 insertions, 7 deletions
@@ -1,16 +1,16 @@ pkgbase = cs-string-git pkgdesc = Standalone library for unicode aware string support (git version) - pkgver = r45.c6f1f51 + pkgver = 1.4.0.r0.gfde6148 pkgrel = 1 url = https://www.copperspice.com/ arch = x86_64 license = BSD makedepends = git makedepends = cmake + makedepends = catch2 provides = cs-string conflicts = cs-string source = git+https://github.com/copperspice/cs_string.git sha256sums = SKIP pkgname = cs-string-git - @@ -1,35 +1,36 @@ # Maintainer: Daniel Bermond <dbermond@archlinux.org> pkgname=cs-string-git -pkgver=r45.c6f1f51 +pkgver=1.4.0.r0.gfde6148 pkgrel=1 pkgdesc='Standalone library for unicode aware string support (git version)' arch=('x86_64') url='https://www.copperspice.com/' license=('BSD') -makedepends=('git' 'cmake') +makedepends=('git' 'cmake' 'catch2') provides=('cs-string') conflicts=('cs-string') source=('git+https://github.com/copperspice/cs_string.git') sha256sums=('SKIP') pkgver() { - printf 'r%s.%s' "$(git -C cs_string rev-list --count HEAD)" "$(git -C cs_string rev-parse --short HEAD)" + git -C cs_string describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^string\.//;s/^v//' } build() { cmake -B build -S cs_string \ -DCMAKE_BUILD_TYPE:STRING='None' \ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ + -DBUILD_TESTS:BOOL='ON' \ -Wno-dev make -C build } check() { - build/bin/Test + make -C build test } package() { - make -C build DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build install -D -m644 cs_string/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |