aboutsummaryrefslogtreecommitdiffstats
path: root/main/dtach/APKBUILD
blob: ae776613b0d941b4d50f72d54170fb76104b6978 (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
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=dtach
pkgver=0.8
pkgrel=4
pkgdesc="A program that emulates the detach feature of screen"
url="http://dtach.sourceforge.net"
arch="all"
license='GPL'
depends=""
makedepends=""
source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
subpackages="$pkgname-doc"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"

	install -Dm755 "$srcdir"/dtach-0.8/dtach "$pkgdir"/usr/bin/dtach
	install -Dm644 "$srcdir"/dtach-0.8/dtach.1 "$pkgdir"/usr/share/man/man1/dtach.1
	install -Dm644 "$srcdir"/dtach-0.8/README "$pkgdir"/usr/share/doc/README
}

md5sums="ec5999f3b6bb67da19754fcb2e5221f3  dtach-0.8.tar.gz"