mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-29 10:52:24 +08:00
56 lines
1.8 KiB
Bash
56 lines
1.8 KiB
Bash
# $Id: PKGBUILD 78543 2010-04-25 16:49:03Z dan $
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
pkgname=git
|
|
pkgver=1.7.1
|
|
pkgrel=1
|
|
pkgdesc="the fast distributed version control system"
|
|
arch=(i686 x86_64)
|
|
url="http://git-scm.com/"
|
|
license=('GPL2')
|
|
depends=('curl' 'expat>=2.0' 'perl-error' 'perl>=5.10.0')
|
|
makedepends=('python')
|
|
optdepends=('tk: gitk and git gui'
|
|
'perl-libwww: git svn'
|
|
'perl-term-readkey: git svn'
|
|
'subversion: git svn'
|
|
'cvsps: git cvsimport')
|
|
replaces=('git-core')
|
|
provides=('git-core')
|
|
source=("http://kernel.org/pub/software/scm/git/${pkgname}-${pkgver}.tar.bz2" \
|
|
"http://kernel.org/pub/software/scm/git/git-manpages-${pkgver}.tar.bz2")
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make prefix=/usr gitexecdir=/usr/lib/git-core || return 1
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make prefix=/usr gitexecdir=/usr/lib/git-core \
|
|
NO_CROSS_DIRECTORY_HARDLINKS=1 \
|
|
INSTALLDIRS=vendor DESTDIR=${pkgdir} install || return 1
|
|
|
|
# bash completion
|
|
mkdir -p $pkgdir/etc/bash_completion.d/
|
|
install -m644 ./contrib/completion/git-completion.bash $pkgdir/etc/bash_completion.d/git || return 1
|
|
|
|
# more contrib stuff
|
|
cp -a ./contrib $pkgdir/usr/share/git/ || return 1
|
|
|
|
# how 'bout some manpages?
|
|
for mansect in man1 man5 man7; do
|
|
for manpage in $srcdir/$mansect/*; do
|
|
install -D -m644 $manpage $pkgdir/usr/share/man/$mansect/$(basename $manpage)
|
|
done
|
|
done
|
|
|
|
# remove perllocal.pod, .packlist, and empty directories.
|
|
rm -rf $pkgdir/usr/lib/perl5
|
|
}
|
|
|
|
md5sums=('3da231dbe82ad103373cb530ae7475d5'
|
|
'50c3e1119a2197de208cbb69c7da0a50')
|
|
sha256sums=('bcf008ec9639480a3ebfdc4708743b6c0978a8bd3103a2dda587ea9473b9dde2'
|
|
'f4898ba376cfb407ccf266e6fcee95c4cfc36387823629923f9e742cfdffda0c')
|