summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5e6be482a385d10ea151ffb4a3dc7c1b3e310bf (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=20210302
pkgrel=1
epoch=1
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 log -1 --format="%cd" --date=short | sed 's|-||g'
}

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/"
}