summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Nader2020-04-11 15:43:16 +0900
committerJason Nader2020-04-11 15:43:16 +0900
commit9abe7dd1612309c7cfcd00f7a319025b43044e0a (patch)
tree015012c4d3d3450b49e857465b49e2d519b42442
parent055fa9a3de1993917a6ef1940a044d2e0af4df10 (diff)
downloadaur-9abe7dd1612309c7cfcd00f7a319025b43044e0a.tar.gz
Update PKGBUILD to match upstream build method
-rw-r--r--.SRCINFO9
-rw-r--r--[-rwxr-xr-x]PKGBUILD33
2 files changed, 22 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 15cb636ed39..31c12fd1d11 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,20 @@
pkgbase = lavalauncher-git
pkgdesc = A simple launcher panel for Wayland
- pkgver = 1.2
- pkgrel = 2
+ pkgver = 20200410.24d7050
+ pkgrel = 1
url = https://git.sr.ht/~leon_plickat/lavalauncher
arch = x86_64
license = GPL3
makedepends = git
- makedepends = wayland-protocols
+ makedepends = meson
makedepends = scdoc
+ makedepends = wayland-protocols
depends = cairo
depends = wayland
provides = lavalauncher
conflicts = lavalauncher
source = lavalauncher::git+https://git.sr.ht/~leon_plickat/lavalauncher
- source = Makefile.patch
sha256sums = SKIP
- sha256sums = 9015bf10858ff1743ef56d2661b14ddf929e09c3c9677be26477a41c90014655
pkgname = lavalauncher-git
diff --git a/PKGBUILD b/PKGBUILD
index 1efc7b5b65c..395336bb761 100755..100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,38 @@
-# Maintainer: Leon Plickat <leonhenrik.plickat@stud.uni-goettingen.de>
+# Maintainer: Jason Nader <jason d0t nader pr0t0nmail.c0m>
pkgname=lavalauncher-git
-pkgver=1.2
-pkgrel=2
+pkgver=20200410.24d7050
+pkgrel=1
pkgdesc='A simple launcher panel for Wayland'
arch=(x86_64)
url='https://git.sr.ht/~leon_plickat/lavalauncher'
license=(GPL3)
-depends=(cairo wayland wayland-protocols scdoc)
-makedepends=(git gcc make)
+depends=('cairo' 'wayland')
+makedepends=('git' 'meson' 'scdoc' 'wayland-protocols')
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
-source=("${pkgname%-*}::git+${url}" 'Makefile.patch')
-sha256sums=('SKIP' '9015bf10858ff1743ef56d2661b14ddf929e09c3c9677be26477a41c90014655')
+source=("${pkgname%-*}::git+${url}")
+sha256sums=('SKIP')
pkgver() {
- printf "1.1"
-}
-
-prepare()
-{
cd "${pkgname%-*}"
- patch -Np1 -i ../Makefile.patch
+ git log -1 --format='%cd.%h' --date=short | tr -d -
}
build()
{
- make -C "${pkgname%-*}"
+ cd "${pkgname%-*}"
+ meson \
+ --prefix=/usr \
+ --buildtype release \
+ build
+ ninja -C build
}
package()
{
- make -C "${pkgname%-*}" PREFIX=/usr DESTDIR="$pkgdir/" install
+ cd "${pkgname%-*}"
+ DESTDIR="$pkgdir" ninja -C build install
+ install -D -m 0644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname%-*}"/LICENSE
+ install -D -m 0644 README.md "$pkgdir"/usr/share/doc/"${pkgname%-*}"/README.md
}