summaryrefslogtreecommitdiff
path: root/user/xterm/APKBUILD
blob: 96d8d08f70146beb44433b327f0c865bda9e8012 (plain) (blame)
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
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=xterm
pkgver=350
pkgrel=0
pkgdesc="An X-based terminal emulator"
url="https://invisible-island.net/xterm/"
arch="all"
options="!check" # no tests
license="X11"
makedepends="libx11-dev libsm-dev libice-dev libxt-dev utmps-dev libxaw-dev
	libxext-dev libxrender-dev libxft-dev freetype-dev ncurses-dev
	pcre-dev"
subpackages="$pkgname-doc"
source="https://invisible-mirror.net/archives/xterm/xterm-$pkgver.tgz
	posix-ptmx.patch
	"

build() {
	LIBS="-ltinfow" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-pcre \
		--enable-sixel-graphics
	# This is NOT A TYPO!
	#
	# XTerm does not use ld(1) as a linker.  It uses a shell script
	# called 'plink.sh' which tries to Be Smart, but is actually
	# Quite Dumb.
	#
	# It determines that the utmp symbols are in musl, and decides
	# -lutmps really isn't necessary.  However!  There is some solace.
	#
	# -k is like -l, but is forced, even if it isn't "really needed".
	# So we use -k for utmps.
	make EXTRA_LOADFLAGS="-kutmps -lskarnet"
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="66e6cb37ebedd65c473b04cc31917e509f50652358414787a0a3f0b8f39ae957bf0aefe372576f82a698fccc6c45840cd4e4a2d8ce9f0b1fe5582ed88dae724f  xterm-350.tgz
e29ef756243faa6f5ced3c74d6879b4fc8f9839501becae49af4f458d0f499bcda40a0eb66dada9cae8bf9789256daf3d1605ac1b5b4301654d8b5ac6eaca81d  posix-ptmx.patch"