diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-11-21 21:16:20 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-11-21 21:16:20 (GMT) |
commit | 53bc2cba958b00609fdfcf85f655399f00235305 (patch) | |
tree | 77f486de8ba1f5766120c4868ac7a45aa8f67ecc /abs/core/pacman/PKGBUILD | |
parent | d72ea2ef7359c1beec79619b52c7229fdd150cb8 (diff) | |
download | linhes_pkgbuild-53bc2cba958b00609fdfcf85f655399f00235305.zip linhes_pkgbuild-53bc2cba958b00609fdfcf85f655399f00235305.tar.gz linhes_pkgbuild-53bc2cba958b00609fdfcf85f655399f00235305.tar.bz2 |
pacman: update to 4.1.2
Diffstat (limited to 'abs/core/pacman/PKGBUILD')
-rw-r--r-- | abs/core/pacman/PKGBUILD | 67 |
1 files changed, 43 insertions, 24 deletions
diff --git a/abs/core/pacman/PKGBUILD b/abs/core/pacman/PKGBUILD index 56424d7..4e0fbf9 100644 --- a/abs/core/pacman/PKGBUILD +++ b/abs/core/pacman/PKGBUILD @@ -4,30 +4,47 @@ # Maintainer: Dave Reisner <dreisner@archlinux.org> pkgname=pacman -pkgver=4.1.0 -pkgrel=1 +pkgver=4.1.2 +pkgrel=7 pkgdesc="A library-based package manager with dependency support" arch=('i686' 'x86_64') url="http://www.archlinux.org/pacman/" license=('GPL') groups=('base' 'base-devel') -depends=('bash' 'glibc>=2.15' 'libarchive>=3.1.2' 'curl>=7.19.4' +depends=('bash>=4.2.042-2' 'glibc>=2.17-2' 'libarchive>=3.1.2' 'curl>=7.19.4' 'gpgme' 'pacman-mirrorlist' 'archlinux-keyring') -makedepends=('asciidoc') -checkdepends=('fakechroot') +checkdepends=('python2' 'fakechroot') optdepends=('fakeroot: for makepkg usage as normal user') +provides=('pacman-contrib') +conflicts=('pacman-contrib') +replaces=('pacman-contrib') backup=(etc/pacman.conf etc/makepkg.conf) -install=pacman.install -options=(!libtool) +options=('strip' 'debug') source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz{,.sig} + 0001-pacman-key-compatibility-with-gnupg-2.1.patch + pacman.conf.i686 pacman.conf.x86_64 makepkg.conf) +md5sums=('063c8b0ff6bdf903dc235445525627cd' + 'SKIP' + 'd0e015b1bf78cbf9762d9c44ea5f77a9' + '2db6c94709bb30cc614a176ecf8badb1' + 'de74a13618347f08ae4a9637f74471c4' + '2da6544e387f940588a90cb4b9b914e2') +validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD') # Allan McRae <allan@archlinux.org> + +prepare() { + cd "$pkgname-$pkgver" + patch -p1 -i $srcdir/0001-pacman-key-compatibility-with-gnupg-2.1.patch +} build() { - cd $srcdir/$pkgname-$pkgver + cd "$pkgname-$pkgver" ./configure --prefix=/usr --sysconfdir=/etc \ - --localstatedir=/var --enable-doc + --localstatedir=/var --enable-doc \ + --with-scriptlet-shell=/usr/bin/bash \ + --with-ldconfig=/usr/bin/ldconfig make make -C contrib } @@ -37,41 +54,43 @@ check() { } package() { - cd $srcdir/$pkgname-$pkgver - make DESTDIR=$pkgdir install + cd "$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" -C contrib install # install Arch specific stuff - mkdir -p $pkgdir/etc - case "$CARCH" in + install -dm755 "$pkgdir/etc" + install -m644 "$srcdir/pacman.conf.$CARCH" "$pkgdir/etc/pacman.conf" + + case $CARCH in i686) - install -m644 $srcdir/pacman.conf.i686 $pkgdir/etc/pacman.conf mycarch="i686" mychost="i686-pc-linux-gnu" myflags="-march=i686" ;; x86_64) - install -m644 $srcdir/pacman.conf.x86_64 $pkgdir/etc/pacman.conf mycarch="x86_64" mychost="x86_64-unknown-linux-gnu" myflags="-march=x86-64" ;; esac - install -m644 $srcdir/makepkg.conf $pkgdir/etc/ + # set things correctly in the default conf file - sed -i $pkgdir/etc/makepkg.conf \ + install -m644 "$srcdir/makepkg.conf" "$pkgdir/etc" + sed -i "$pkgdir/etc/makepkg.conf" \ -e "s|@CARCH[@]|$mycarch|g" \ -e "s|@CHOST[@]|$mychost|g" \ -e "s|@CARCHFLAGS[@]|$myflags|g" - # install completion files - install -Dm644 contrib/bash_completion "$pkgdir/usr/share/bash-completion/completions/pacman" + # 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" + for f in makepkg pacman-key; do ln -s pacman "$pkgdir/usr/share/bash-completion/completions/$f" done - install -Dm644 contrib/zsh_completion $pkgdir/usr/share/zsh/site-functions/_pacman + install -Dm644 contrib/PKGBUILD.vim "$pkgdir/usr/share/vim/vimfiles/syntax/PKGBUILD.vim" } -md5sums=('a0f2b3148bee4784f21cf373cf59a0bc' - 'SKIP' - 'de74a13618347f08ae4a9637f74471c4' - '2ea6f0a5badef735ec7d30a372f5e9c6') |