Clean up PKGBUILD
This commit is contained in:
parent
8cb5b3989a
commit
33d25733e9
2
.SRCINFO
2
.SRCINFO
@ -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
|
||||||
|
16
PKGBUILD
16
PKGBUILD
@ -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"
|
||||||
@ -14,8 +14,8 @@ optdepends=(
|
|||||||
"rxvt-unicode: Default terminal emulator."
|
"rxvt-unicode: Default terminal emulator."
|
||||||
"dmenu: Default for launching applications."
|
"dmenu: Default for launching applications."
|
||||||
"i3status: To display system information with a bar."
|
"i3status: To display system information with a bar."
|
||||||
"swayidle-git: Idle management daemon for Sway."
|
"swayidle-git: Idle management daemon for Sway."
|
||||||
"swaylock-git: Screen locker for Sway."
|
"swaylock-git: Screen locker for Sway."
|
||||||
)
|
)
|
||||||
arch=("i686" "x86_64")
|
arch=("i686" "x86_64")
|
||||||
url="https://swaywm.org"
|
url="https://swaywm.org"
|
||||||
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user