diff options
author | GreyXor | 2023-12-30 00:12:28 +0100 |
---|---|---|
committer | GreyXor | 2023-12-30 00:14:04 +0100 |
commit | af9380f53b82422617f11b1b5f3e020b51db88a0 (patch) | |
tree | 0959074eb11c5d5b5dbf6d400af8ca77787a6224 /PKGBUILD | |
parent | c9ddc0a7d9cafdbfa281c5d70648db4f8a5ac26d (diff) | |
download | aur-af9380f53b82422617f11b1b5f3e020b51db88a0.tar.gz |
refactor: namcap linting
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 54 |
1 files changed, 27 insertions, 27 deletions
@@ -1,43 +1,43 @@ -# Maintainer: Taran Lynn <taranlynn0gmail.com> +# Maintainer: GreyXor <greyxor@protonmail.com> +# Contributor: Taran Lynn <taranlynn0gmail.com> + pkgname=swaybg-git -_pkgname=swaybg -pkgver=r95.a8f109a +pkgver=r130.eabc06e pkgrel=1 license=("MIT") -pkgdesc="Wallpaper tool for Wayland compositors" +pkgdesc="Wallpaper tool for Wayland compositors (git development version)" makedepends=( - 'meson' - 'git' - 'scdoc' - 'wayland-protocols' - 'gdk-pixbuf2' + 'meson' + "git" + "scdoc" + "wayland-protocols" ) depends=( - "wayland" "cairo" + "cairo" + "gdk-pixbuf2" + "glib2" + "glibc" + "wayland" ) - -arch=("i686" "x86_64") -url="https://swaywm.org" -source=("${pkgname%-*}::git+https://github.com/swaywm/swaybg.git#branch=master") -sha1sums=("SKIP") -provides=("swaybg") -conflicts=("swaybg") +arch=('x86_64') +url="https://github.com/swaywm/swaybg" +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname}::git+https://github.com/swaywm/swaybg.git") +b2sums=('SKIP') pkgver() { - cd "${srcdir}/${_pkgname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + # 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)" } - build() { - arch-meson "${_pkgname}" build - meson compile -C build -} - -check() { - meson test -C build + arch-meson build "${pkgname}" + meson compile -C build } package() { - DESTDIR="$pkgdir" meson install -C build + meson install -C build --destdir "$pkgdir" + + install -Dm644 "${pkgname}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" } |