summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d62fdfe31461c8f1002fb39628b5ce7442e4b5c (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
# Maintainer: AntonĂ­n Dach <dach@protonmail.com>
pkgname=wayst-git
pkgver=r83.e947db4
pkgrel=1
pkgdesc='Simple terminal emulator for Wayland and X11 with OpenGL rendering and minimal dependencies.'
arch=('x86_64')
url='https://github.com/91861/wayst'
license=('MIT')
depends=('mesa' 'freetype2' 'fontconfig' 'libxkbcommon')
makedepends=('git') 
provides=('wayst')
conflicts=('wayst')
install=
source=('git+https://github.com/91861/wayst.git')
md5sums=('SKIP')

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

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

package() {
	cd "$srcdir/wayst"
	mkdir -p "$pkgdir/usr/bin"
	make INSTALL_DIR="$pkgdir/usr/bin" install
	#install -Dm 755 wayst "$pkgdir"/usr/bin/wayst
}