summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c55fc090f88d4da099b06562d088440f0f468cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
}