aboutsummaryrefslogtreecommitdiffstats
path: root/main/tar/APKBUILD
blob: 9ef8468786a142f6bbb99cceb076f42341b0404f (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
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=tar
pkgver=1.26
pkgrel=1
pkgdesc="Utility used to store, backup, and transport files"
url="http://www.gnu.org"
arch="all"
license='GPL'
depends=
install=
makedepends=
source="ftp://ftp.gnu.org/gnu/tar/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc"

prepare() {
        cd "$srcdir/$pkgname-$pkgver"
        # fix eglibc-2.16+ build issue
        sed -i -e '/gets is a/d' \
                gnu/stdio.in.h || return 1
}

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

	./configure --prefix=/usr \
		--mandir=/usr/share/man
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
	mkdir "$pkgdir"/bin
	mv "$pkgdir"/usr/bin/tar "$pkgdir"/bin/
	ln -s /bin/tar "$pkgdir"/usr/bin/tar
}

md5sums="00d1e769c6af702c542cca54b728920d  tar-1.26.tar.gz"