diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 24 insertions, 23 deletions
@@ -1,43 +1,44 @@ # Maintainer: GreyXor <greyxor@protonmail.com> # Contributor: Taran Lynn <taranlynn0gmail.com> - pkgname=swaybg-git -pkgver=r130.eabc06e +pkgver=1.2.0.r4.geabc06e pkgrel=1 -license=("MIT") pkgdesc="Wallpaper tool for Wayland compositors (git development version)" -makedepends=( - 'meson' - "git" - "scdoc" - "wayland-protocols" -) -depends=( - "cairo" - "gdk-pixbuf2" - "glib2" - "glibc" - "wayland" -) arch=('x86_64') url="https://github.com/swaywm/swaybg" +license=("MIT") +depends=( +"cairo" +"gdk-pixbuf2" +"glib2" +"glibc" +"wayland" +) +makedepends=( +'meson' +"git" +"scdoc" +"wayland-protocols" +) provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") -source=("${pkgname}::git+https://github.com/swaywm/swaybg.git") +source=("${pkgname}::git+${url}.git") b2sums=('SKIP') pkgver() { - # Calculate the version dynamically using git information - printf "r%s.%s" "$(git -C "$srcdir/${pkgname}" rev-list --count HEAD)" "$(git -C "$srcdir/${pkgname}" rev-parse --short HEAD)" + cd "$pkgname" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - arch-meson build "${pkgname}" - meson compile -C build + arch-meson "$pkgname" build + meson compile -C build } package() { - meson install -C build --destdir "$pkgdir" + meson install -C build --destdir "$pkgdir" - install -Dm644 "${pkgname}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "${pkgname}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" } |