summaryrefslogblamecommitdiff
path: root/user/xterm/APKBUILD
blob: ec6384a96d8c4ac7edd771b9d887ac856a21b921 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
             
          
        


                                         
                                  
             
          
                                                                           

                                                                      
                          
                                                                     

                        
 
           



                      


                      
         
                                     





                                         

                                       











                                                                          


           


                                      
                                                                                                                                                           
                                                                                                                                                   
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=xterm
pkgver=390
pkgrel=0
pkgdesc="An X-based terminal emulator"
url="https://invisible-island.net/xterm/"
arch="all"
options="!check"  # No test suite.
license="X11"
depends=""
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
	"

# secfixes:
#   390-r0:
#     - CVE-2022-24130
#     - CVE-2022-45063
#     - CVE-2023-40359
#   368-r0:
#     - CVE-2021-27135

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="865ae292a56635ec2811a950763da22cbbb4de463bee75b4595b7387a09227f612c5620986e431631c3d73fe783d862fd9a6694c54c33898327339467b7085b7  xterm-390.tgz
6811cd67ffe21dc23c9ad6a439291bb0b3c3d347f4d5e2cd65de9f790fde2bf7323fe9f1b309d95ac98a3ffaae5989bc73a2c5fe08aa9f6a2c6cbc3b9adcf8d9  posix-ptmx.patch"