2010-07-29 04:21:06 +08:00
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgname=pacman
|
2015-03-29 01:09:04 +08:00
|
|
|
pkgver=4.2.1
|
2015-11-05 01:43:02 +08:00
|
|
|
pkgrel=8
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="A library-based package manager with dependency support"
|
2012-12-08 06:24:31 +08:00
|
|
|
arch=('x86_64')
|
2010-03-13 23:25:19 +08:00
|
|
|
url="http://www.archlinux.org/pacman/"
|
|
|
|
license=('GPL')
|
2013-04-12 01:20:48 +08:00
|
|
|
groups=('base' 'base-devel')
|
2015-11-01 04:37:55 +08:00
|
|
|
depends=('bash>=4.3.025-1' 'glibc>=2.20-2' 'libarchive=3.1.2' 'curl>=7.28.1'
|
2013-04-12 01:31:16 +08:00
|
|
|
'gpgme' 'pacman-mirrorlist' )
|
2013-04-12 01:20:48 +08:00
|
|
|
checkdepends=('python2' 'fakechroot')
|
2015-03-29 01:09:04 +08:00
|
|
|
makedepends=('asciidoc')
|
2012-03-20 04:28:09 +08:00
|
|
|
optdepends=('fakeroot: for makepkg usage as normal user')
|
2013-04-12 01:20:48 +08:00
|
|
|
provides=('pacman-contrib')
|
|
|
|
conflicts=('pacman-contrib')
|
|
|
|
replaces=('pacman-contrib')
|
2010-03-13 23:25:19 +08:00
|
|
|
backup=(etc/pacman.conf etc/makepkg.conf)
|
|
|
|
install=pacman.install
|
|
|
|
options=(!libtool)
|
2015-03-29 01:09:04 +08:00
|
|
|
source=(https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
|
2013-04-13 01:58:27 +08:00
|
|
|
pacman.conf
|
2013-04-12 01:20:48 +08:00
|
|
|
makepkg.conf)
|
2015-03-29 01:09:04 +08:00
|
|
|
sha1sums=('61a87226ff3676c0c1e6c8bfadafb6d5750d1e06'
|
2015-11-05 01:43:02 +08:00
|
|
|
'41f4d1ca64bbeee0ec758c1b99615cb3a1619718'
|
2015-03-29 01:09:04 +08:00
|
|
|
'bb2fe75a0e94444c5397d616988a35a51e9380a2')
|
2010-04-04 22:20:41 +08:00
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
build() {
|
2015-03-29 01:09:04 +08:00
|
|
|
cd "$srcdir"/$pkgname-$pkgver
|
2012-03-20 04:28:09 +08:00
|
|
|
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
2013-04-12 01:20:48 +08:00
|
|
|
--localstatedir=/var --enable-doc \
|
2014-09-25 06:11:14 +08:00
|
|
|
--with-scriptlet-shell=/usr/bin/bash \
|
2013-04-12 01:20:48 +08:00
|
|
|
--with-ldconfig=/usr/bin/ldconfig
|
2011-02-07 00:25:02 +08:00
|
|
|
make
|
2013-04-12 01:20:48 +08:00
|
|
|
make -C contrib
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|
|
|
|
|
2012-03-20 04:28:09 +08:00
|
|
|
check() {
|
|
|
|
make -C "$pkgname-$pkgver" check
|
|
|
|
}
|
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
package() {
|
2015-03-29 01:09:04 +08:00
|
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
make DESTDIR="$pkgdir" -C contrib install
|
|
|
|
|
|
|
|
# install Chakra specific stuff
|
|
|
|
install -dm755 "$pkgdir"/etc
|
|
|
|
install -m644 "$srcdir"/pacman.conf "$pkgdir"/etc/pacman.conf
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-12-08 06:24:31 +08:00
|
|
|
mycarch="x86_64"
|
|
|
|
mychost="x86_64-unknown-linux-gnu"
|
2013-04-12 01:20:48 +08:00
|
|
|
myflags="-march=x86-64"
|
2012-12-08 06:24:31 +08:00
|
|
|
|
2015-03-29 01:09:04 +08:00
|
|
|
install -m644 "$srcdir"/makepkg.conf "$pkgdir"/etc/
|
2011-02-07 00:25:02 +08:00
|
|
|
# set things correctly in the default conf file
|
2015-03-29 01:09:04 +08:00
|
|
|
sed -i "$pkgdir"/etc/makepkg.conf \
|
2010-03-13 23:25:19 +08:00
|
|
|
-e "s|@CARCH[@]|$mycarch|g" \
|
|
|
|
-e "s|@CHOST[@]|$mychost|g" \
|
|
|
|
-e "s|@CARCHFLAGS[@]|$myflags|g"
|
2015-03-29 01:09:04 +08:00
|
|
|
|
2013-04-12 01:20:48 +08:00
|
|
|
# put bash_completion in the right location
|
|
|
|
install -dm755 ${pkgdir}/usr/share/bash-completion/completions
|
|
|
|
mv ${pkgdir}/etc/bash_completion.d/pacman \
|
|
|
|
${pkgdir}/usr/share/bash-completion/completions
|
|
|
|
rmdir ${pkgdir}/etc/bash_completion.d
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-09-10 04:35:31 +08:00
|
|
|
for f in makepkg pacman-key; do
|
2015-03-29 01:09:04 +08:00
|
|
|
ln -s pacman "$pkgdir"/usr/share/bash-completion/completions/$f
|
2012-09-10 04:35:31 +08:00
|
|
|
done
|
2015-03-29 01:09:04 +08:00
|
|
|
|
|
|
|
install -Dm644 contrib/PKGBUILD.vim "$pkgdir"/usr/share/vim/vimfiles/syntax/PKGBUILD.vim
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|