mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
33 lines
1 KiB
Bash
33 lines
1 KiB
Bash
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
|
|
|
|
pkgname=git
|
|
pkgver=1.6.4.1
|
|
pkgrel=1
|
|
pkgdesc="GIT - the stupid content tracker"
|
|
groups=('base-devel')
|
|
arch=(arm)
|
|
url="http://git-scm.com/"
|
|
license=('GPL2')
|
|
depends=('curl' 'expat>=2.0' 'perl-error' 'perl>=5.10.0')
|
|
source=("http://kernel.org/pub/software/scm/git/${pkgname}-${pkgver}.tar.bz2")
|
|
md5sums=('bdc9b8be7d56a3beabad2d228f2e8e9a')
|
|
|
|
build() {
|
|
cd "$srcdir/git-$pkgver"
|
|
|
|
make prefix=/opt gitexecdir=/opt/lib/git-core || return 1
|
|
make prefix=/opt gitexecdir=/opt/lib/git-core \
|
|
INSTALLDIRS=vendor DESTDIR="$pkgdir" install || return 1
|
|
|
|
# let's plop gitweb in /opt/share
|
|
mkdir -p "$pkgdir/opt/share/"
|
|
cp -dR ./gitweb "$pkgdir/opt/share/gitweb" || return 1
|
|
|
|
# bash completion
|
|
mkdir -p $pkgdir/opt/etc/bash_completion.d/
|
|
install -m644 ./contrib/completion/git-completion.bash \
|
|
"$pkgdir/opt/etc/bash_completion.d/git" || return 1
|
|
|
|
# remove perllocal.pod, .packlist, and empty directories.
|
|
rm -rf $pkgdir/opt/lib/perl5
|
|
}
|