APKBUILD 1.18 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
2
pkgname=git
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=1.6.6
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6 7
pkgdesc="GIT - the stupid content tracker"
url="http://git.or.cz/"
license="GPL2"
Natanael Copa's avatar
Natanael Copa committed
8 9 10
depends=
subpackages="$pkgname-doc $pkgname-perl"
makedepends="zlib-dev openssl-dev curl-dev expat-dev perl-dev"
Natanael Copa's avatar
Natanael Copa committed
11
source="http://kernel.org/pub/software/scm/git/git-$pkgver.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
12 13 14
	bb-tar.patch
	"

Natanael Copa's avatar
Natanael Copa committed
15 16 17 18
_makeopts="NO_ICONV=YesPlease
	NO_NSEC=YesPlease
	NO_TCLTK=YesPlease
	NO_SVN_TESTS=YesPlease"
Natanael Copa's avatar
Natanael Copa committed
19

Natanael Copa's avatar
Natanael Copa committed
20
build () {
Natanael Copa's avatar
Natanael Copa committed
21
	cd $srcdir/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
22
	patch -p1 -i ../bb-tar.patch || return 1
Natanael Copa's avatar
Natanael Copa committed
23 24
	make prefix=/usr DESTDIR="$pkgdir" $_makeopts || return 1
}
Natanael Copa's avatar
Natanael Copa committed
25

Natanael Copa's avatar
Natanael Copa committed
26 27 28
package() {
	cd $srcdir/$pkgname-$pkgver
	make prefix=/usr DESTDIR="$pkgdir" $_makeopts install
Natanael Copa's avatar
Natanael Copa committed
29
}
Natanael Copa's avatar
Natanael Copa committed
30

Natanael Copa's avatar
Natanael Copa committed
31
perl() {
32
	depends="perl git perl-net-smtp-ssl perl-authen-sasl"
Natanael Copa's avatar
Natanael Copa committed
33 34 35 36 37 38 39 40
	pkgdesc="Perl scripts for git"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/perl* "$subpkgdir"/usr/lib/
	cd "$pkgdir"
	find -type f | xargs file --mime-type | grep perl | cut -d: -f1| while read f; do
		mkdir -p "$subpkgdir"/${f%/*}
		mv "$f" "$subpkgdir"/${f%/*}
	done
Natanael Copa's avatar
Natanael Copa committed
41
	find "$pkgdir" -name perllocal.pod -delete
Natanael Copa's avatar
Natanael Copa committed
42 43 44
}


Natanael Copa's avatar
Natanael Copa committed
45
md5sums="25e4bcdc528b3ffadc6e59908a513881  git-1.6.6.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
46
e63a201556c4f089de790805c09a2e5b  bb-tar.patch"