summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5d72d8a8e0078f4e845d93e7cb78b70987fb391 (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
# Maintainer: Yossef Sabry <yossefsabry66@gmail.com>
pkgname=keypop-git
pkgver=v1.2.r3.g12f2bcc
pkgrel=1
pkgdesc="A simple Wayland key display application overlay"
arch=('x86_64')
url="https://github.com/yossefsabry/keypop"
license=('MIT')
depends=('wayland' 'cairo' 'pango' 'libinput' 'libxkbcommon' 'gtk3' 'libappindicator-gtk3')
makedepends=('git' 'wayland-protocols')
provides=('keypop')
conflicts=('keypop')
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/keypop"
	git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/keypop"
	make
}

package() {
	cd "$srcdir/keypop"
	# Manual install since Makefile doesn't support DESTDIR/prefix correctly yet
	install -D -m755 keypop "$pkgdir/usr/bin/keypop"
	install -D -m644 readme.md "$pkgdir/usr/share/doc/keypop/readme.md"
    
    # Install license
    install -D -m644 LICENSE "$pkgdir/usr/share/licenses/keypop/LICENSE"
}