aboutsummaryrefslogtreecommitdiffstats
path: root/testing/enscript/APKBUILD
blob: 3dc61b786f47429b174f43cddf054a760e668ce3 (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
# Maintainer: Steffen Nurpmeso <steffen@sdaoden.eu>
pkgname=enscript
pkgver=1.6.6
pkgrel=0
pkgdesc="GNU Enscript converts ASCII files to PostScript, HTML, or RTF"
url="https://www.gnu.org/software/enscript/"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/enscript/$pkgname-$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"
options="!check"

build() {
	cd "$builddir"

	# Avoid paths sneak in.
	unset LIBRARY_PATH LD_RUN_PATH
	PATH=/sbin:/usr/sbin:/bin:/usr/bin
	C_INCLUDE_PATH=/usr/include
	LD_LIBRARY_PATH=/lib:/usr/lib
	export PATH C_INCLUDE_PATH LD_LIBRARY_PATH

	./configure --prefix=/usr --disable-nls
	make
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/info
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="bf1c2b9ea7723518a1ef312145ddcd6ffdef0c6e8b5795ea84cb55d76fccc02f441d0c2dc6897e970368186e6a829ab74a090716624e0f7a8f575653fa495ebc  enscript-1.6.6.tar.gz"