summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45282b4dc090a823fac8fd68969776e7ba610eae (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
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: brunorro <br1.rdgz@gmail.com>
_pkgname=wterm
pkgname=$_pkgname-git
pkgver=0ae42717
pkgrel=1
epoch=
pkgdesc="xterm for wayland (simple wayland st suckless terminal)"
arch=('x86_64')
url="https://github.com/majestrate/wterm"
license=('MIT')
groups=()
depends=('libdrm' 'fontconfig' 'wayland' 'libxkbcommon' 'pixman')
makedepends=()
checkdepends=()
optdepends=('ttf-liberation: Red Hats liberation fonts')
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=()
backup=()
options=()
install=
changelog=
source=("$_pkgname::git+https://github.com/majestrate/wterm")
noextract=()
md5sums=("SKIP")
validpgpkeys=()

pkgver() {
	cd "$_pkgname"
	git rev-parse HEAD | cut -b1-8
}

prepare() {
	cd "$_pkgname"
	sed -i "/tic -s wterm.info/d" Makefile 
}

build() {
	cd "$_pkgname"
	make wld
	make wterm
}

package() {
	cd "$_pkgname"
	make BIN_PREFIX="$pkgdir/usr/local" SHARE_PREFIX="$pkgdir/usr/local" install
	mkdir -p "$pkgdir/usr/share/terminfo/w/"
	cp wterm.info "$pkgdir/usr/share/terminfo/w/"
}