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
|
||||
|
16
PKGBUILD
16
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"
|
||||
@ -14,8 +14,8 @@ optdepends=(
|
||||
"rxvt-unicode: Default terminal emulator."
|
||||
"dmenu: Default for launching applications."
|
||||
"i3status: To display system information with a bar."
|
||||
"swayidle-git: Idle management daemon for Sway."
|
||||
"swaylock-git: Screen locker for Sway."
|
||||
"swayidle-git: Idle management daemon for Sway."
|
||||
"swaylock-git: Screen locker for Sway."
|
||||
)
|
||||
arch=("i686" "x86_64")
|
||||
url="https://swaywm.org"
|
||||
@ -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