diff options
author | M0Rf30 | 2021-11-14 15:59:58 +0100 |
---|---|---|
committer | M0Rf30 | 2021-11-14 15:59:58 +0100 |
commit | 69dde83e8255a7212d3fbad1f3f9ae5c459973ab (patch) | |
tree | 6a75c3ebc63613ffed7bd5a26e584883bea38cd6 | |
parent | 7ad4eb04b5a02ae64bea507a31cdd8ce4a4eab74 (diff) | |
download | aur-69dde83e8255a7212d3fbad1f3f9ae5c459973ab.tar.gz |
gnome-pie-git: enhance revision
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -1,7 +1,7 @@ # Maintainer: robertfoster pkgname=gnome-pie-git -pkgver=v0.7.2.r2.02e26da +pkgver=0.7.3.r0.g0140a40 pkgrel=1 pkgdesc="Circular application launcher for GNOME" arch=('i686' 'x86_64') @@ -11,25 +11,29 @@ depends=('libarchive' 'libgee' 'libwnck3' 'gnome-menus') makedepends=('cmake' 'git' 'vala') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("gnome-pie::git+https://github.com/Simmesimme/gnome-pie") +source=("git+https://github.com/Simmesimme/gnome-pie") -build() { +prepare() { cd "${srcdir}/${pkgname%-git}" ./resources/locale/compile-po.sh [[ -d build ]] || mkdir build - cd build +} + +build() { + cd "${srcdir}/${pkgname%-git}/build" cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release make } package() { - cd "${srcdir}/${pkgname%-git}" + cd "${srcdir}/${pkgname%-git}/build" make DESTDIR="$pkgdir" install + install -Dm644 ../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" } pkgver() { cd "${srcdir}/${pkgname%-git}" - printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } sha256sums=('SKIP') |