summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 438d90ae7a551ba48951b0c69f568e73addee698 (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=18864b6d
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' 'git')
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/" SHARE_PREFIX="$pkgdir/usr/" install
	mkdir -p "$pkgdir/usr/share/terminfo/w/"
	cp wterm.info "$pkgdir/usr/share/terminfo/w/"
}