Clean up PKGBUILD
This commit is contained in:
parent
8cb5b3989a
commit
33d25733e9
2
.SRCINFO
2
.SRCINFO
@ -1,6 +1,6 @@
|
||||
pkgbase = sway-git
|
||||
pkgdesc = i3-compatible Wayland compositor
|
||||
pkgver = r5522.70637b40
|
||||
pkgver = r5747.9032be4f
|
||||
pkgrel = 1
|
||||
url = https://swaywm.org
|
||||
arch = i686
|
||||
|
12
PKGBUILD
12
PKGBUILD
@ -1,7 +1,7 @@
|
||||
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
||||
pkgname=sway-git
|
||||
_pkgname=sway
|
||||
pkgver=r5522.70637b40
|
||||
pkgver=r5747.9032be4f
|
||||
pkgrel=1
|
||||
license=("MIT")
|
||||
pkgdesc="i3-compatible Wayland compositor"
|
||||
@ -26,21 +26,21 @@ conflicts=("sway")
|
||||
options=(debug !strip)
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
cd "$_pkgname"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
cd "$_pkgname"
|
||||
meson -Dwerror=false --prefix /usr "$srcdir/build"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
cd "$_pkgname"
|
||||
ninja -C "$srcdir/build"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
DESTDIR="$pkgdir/" ninja -C "$srcdir/build" install
|
||||
cd "$_pkgname"
|
||||
DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user