aboutsummaryrefslogtreecommitdiffstats
path: root/main/tar/APKBUILD
blob: b9113a35f69b1f8a0ec4e26c2806e3f2933af07a (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
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=tar
pkgver=1.27.1
pkgrel=0
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.xz"
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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install

	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null

	mkdir "$pkgdir"/bin
	mv "$pkgdir"/usr/bin/tar "$pkgdir"/bin/
	ln -s /bin/tar "$pkgdir"/usr/bin/tar
}

md5sums="e0382a4064e09a4943f3adeff1435978  tar-1.27.1.tar.xz"
sha256sums="574210bccbcf9eec889f73234a63ad6863f5b8644ac1f3d7f13871372295b7c7  tar-1.27.1.tar.xz"
sha512sums="e8aa345e6ccae98b0c9fc3697f44c554c318962898a002be1479cdcf045e5999c9eb5d79593142fb9f02bffbacbdb13d75db18ddea171b488d4b8462363f33db  tar-1.27.1.tar.xz"