aboutsummaryrefslogtreecommitdiffstats
path: root/main/screen/APKBUILD
blob: 81792c4c871ae7ab077085736ad1584485944208 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=screen
pkgver=4.2.1
pkgrel=0
pkgdesc="A window manager that multiplexes a physical terminal"
url="http://ftp.gnu.org/gnu/screen/"
arch="all"
license="GPL"
depends=
makedepends="ncurses-dev"
install=
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/screen/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/screen-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}
package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install

	install -Dm644 etc/etcscreenrc "$pkgdir"/etc/screenrc || return 1
	install -Dm644 etc/screenrc "$pkgdir"/etc/skel/.screenrc || return 1
}

md5sums="419a0594e2b25039239af8b90eda7d92  screen-4.2.1.tar.gz"
sha256sums="5468545047e301d2b3579f9d9ce00466d14a7eec95ce806e3834a3d6b0b9b080  screen-4.2.1.tar.gz"
sha512sums="30826b2a2fc436483276b90cc4c6679470f7ccb7098c9bb8457d0e534998cd12da02882cf80678465f6540cade170c3fdc6bdfa31b07359ff0d3ffe2d6063710  screen-4.2.1.tar.gz"