summaryrefslogblamecommitdiff
path: root/user/xterm/APKBUILD
blob: 4b82b895b450a4616a9a1cdb02657a1e8c75c883 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                           

          







                                                                           


                                                              


                      
                                     






                                         











                                                                          






                                      
                                                                                                                                                           
                                                                                                                                                   
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=xterm
pkgver=343
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 freetype-dev ncurses-dev pcre-dev"
subpackages="$pkgname-doc"
source="ftp://ftp.invisible-island.net/xterm/xterm-$pkgver.tgz
	posix-ptmx.patch
	"

build() {
	cd "$builddir"
	LIBS="-ltinfow" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-pcre
	# 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() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="52c06ced7bf0c0177f5b5ae92654191c31d36b7337173b483f9914ebb7468f26db9393347ea8d9708c5f668048ad48e8254b4dbe5be097604cd94b4f38dfc775  xterm-343.tgz
e29ef756243faa6f5ced3c74d6879b4fc8f9839501becae49af4f458d0f499bcda40a0eb66dada9cae8bf9789256daf3d1605ac1b5b4301654d8b5ac6eaca81d  posix-ptmx.patch"