mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
core/pacman to 4.1.2-6
This commit is contained in:
parent
bac20e3530
commit
dc44ba28df
1 changed files with 16 additions and 14 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
pkgname=pacman
|
||||
pkgver=4.1.2
|
||||
pkgrel=5.2
|
||||
pkgrel=6
|
||||
pkgdesc="A library-based package manager with dependency support"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.archlinux.org/pacman/"
|
||||
|
@ -42,7 +42,7 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
./configure --prefix=/usr --sysconfdir=/etc \
|
||||
--localstatedir=/var --enable-doc \
|
||||
|
@ -57,14 +57,16 @@ check() {
|
|||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
make DESTDIR=$pkgdir install
|
||||
make DESTDIR=$pkgdir -C contrib install
|
||||
cd "$pkgname-$pkgver"
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
make DESTDIR="$pkgdir" -C contrib install
|
||||
|
||||
# install Arch specific stuff
|
||||
install -dm755 $pkgdir/etc
|
||||
install -m644 $srcdir/pacman.conf $pkgdir/etc/pacman.conf
|
||||
case "$CARCH" in
|
||||
install -dm755 "$pkgdir/etc"
|
||||
install -m644 "$srcdir/pacman.conf.$CARCH" "$pkgdir/etc/pacman.conf"
|
||||
|
||||
case $CARCH in
|
||||
arm)
|
||||
mycarch="arm"
|
||||
mychost="armv5tel-unknown-linux-gnueabi"
|
||||
|
@ -81,19 +83,19 @@ package() {
|
|||
myflags="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 "
|
||||
;;
|
||||
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"
|
||||
sed -i $pkgdir/etc/pacman.conf -e "s|@CARCH[@]|$mycarch|g"
|
||||
|
||||
# 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
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue