Clean up PKGBUILD

This commit is contained in:
Drew DeVault 2019-02-25 11:44:22 -05:00
parent 8cb5b3989a
commit 33d25733e9
2 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
pkgbase = sway-git pkgbase = sway-git
pkgdesc = i3-compatible Wayland compositor pkgdesc = i3-compatible Wayland compositor
pkgver = r5522.70637b40 pkgver = r5747.9032be4f
pkgrel = 1 pkgrel = 1
url = https://swaywm.org url = https://swaywm.org
arch = i686 arch = i686

View File

@ -1,7 +1,7 @@
# Maintainer: Drew DeVault <sir@cmpwn.com> # Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=sway-git pkgname=sway-git
_pkgname=sway _pkgname=sway
pkgver=r5522.70637b40 pkgver=r5747.9032be4f
pkgrel=1 pkgrel=1
license=("MIT") license=("MIT")
pkgdesc="i3-compatible Wayland compositor" pkgdesc="i3-compatible Wayland compositor"
@ -26,21 +26,21 @@ conflicts=("sway")
options=(debug !strip) options=(debug !strip)
pkgver() { pkgver() {
cd "${srcdir}/${_pkgname}" cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
prepare() { prepare() {
cd "${srcdir}/${_pkgname}" cd "$_pkgname"
meson -Dwerror=false --prefix /usr "$srcdir/build" meson -Dwerror=false --prefix /usr "$srcdir/build"
} }
build() { build() {
cd "${srcdir}/${_pkgname}" cd "$_pkgname"
ninja -C "$srcdir/build" ninja -C "$srcdir/build"
} }
package() { package() {
cd "${srcdir}/${_pkgname}" cd "$_pkgname"
DESTDIR="$pkgdir/" ninja -C "$srcdir/build" install DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
} }