summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--Makefile.patch27
-rwxr-xr-xPKGBUILD37
3 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3f3ed1501f6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = lavalauncher-git
+ pkgdesc = A simple launcher panel for Wayland
+ pkgver = 1.1
+ pkgrel = 1
+ url = https://git.sr.ht/~leon_plickat/lavalauncher
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = wayland-protcols
+ makedepends = scdoc
+ 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/Makefile.patch b/Makefile.patch
new file mode 100644
index 00000000000..d9756a9294e
--- /dev/null
+++ b/Makefile.patch
@@ -0,0 +1,27 @@
+diff --git a/Makefile b/Makefile
+index 418e805..96f00fc 100644
+--- a/Makefile
++++ b/Makefile
+@@ -77,17 +77,17 @@ doc/lavalauncher.1: doc/lavalauncher.1.scd
+
+ install: lavalauncher doc/lavalauncher.1
+ @echo Installing
+- install -D -m 755 lavalauncher $(BINPREFIX)/lavalauncher
+- install -D -m 644 doc/lavalauncher.1 $(MANPREFIX)/man1/lavalauncher.1
++ @install -Dm755 lavalauncher ${DESTDIR}${PREFIX}/bin/lavalauncher
++ @install -Dm644 doc/lavalauncher.1 ${DESTDIR}${MANPREFIX}/man1/lavalauncher.1
+
+ uninstall:
+ @echo Uninstalling
+- $(RM) $(BINPREFIX)/lavalauncher
+- $(RM) $(MANPREFIX)/man1/lavalauncher.1
++ @rm -f ${DESTDIR}${PREFIX}/bin/lavalauncher
++ @rm -f ${DESTDIR}${MANPREFIX}/man1/lavalauncher.1
+
+ clean:
+ @echo Cleaning
+- rm -f lavalauncher \
++ @rm -f lavalauncher \
+ lib/wayland-protocols/wlr-layer-shell-unstable-v1-client-protocol.h \
+ lib/wayland-protocols/wlr-layer-shell-unstable-v1-protocol.c \
+ lib/wayland-protocols/xdg-shell-client-protocol.h \
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..4c55fc090f8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor:
+
+pkgname=lavalauncher-git
+pkgver=r38.gd95f906
+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)
+provides=("${pkgname%-*}")
+conflicts=("${pkgname%-*}")
+source=("${pkgname%-*}::git+${url}" 'Makefile.patch')
+sha256sums=('SKIP' '9015bf10858ff1743ef56d2661b14ddf929e09c3c9677be26477a41c90014655')
+
+pkgver() {
+ cd "${pkgname%-*}"
+ printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare()
+{
+ cd "${pkgname%-*}"
+ patch -Np1 -i ../Makefile.patch
+}
+
+build()
+{
+ make -C "${pkgname%-*}"
+}
+
+package()
+{
+ make -C "${pkgname%-*}" PREFIX=/usr DESTDIR="$pkgdir/" install
+}