[pacman-dev] Possible PKGBUILD and pacman.install for upcoming release
These are here mostly for discussion, and eventually will form the real thing. Guys who have more of an outside view--what else needs to go in the pacman.install file? Let us know, please. PKGBUILD: # $Id$ # Maintainer: judd <jvinet@zeroflux.org> pkgname=pacman pkgver=3.0.0 pkgrel=1 pkgdesc="A library-based package manager with dependency support" arch=('i686' 'x86_64') url="http://www.archlinux.org/pacman/" license=('GPL') makedepends=(doxygen) depends=(libarchive libdownload) replaces=(pacman-rc) backup=(etc/pacman.conf etc/makepkg.conf etc/abs/abs.conf \ etc/pacman.d/{current,release,extra,unstable,community}) install=pacman.install #source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz) source=(http://www.archlinux.org/~dan/pacman/$pkgname-$pkgver.tar.gz) md5sums=('c0983b855d3a3b3466520d01dc55aa08') sha1sums=('f1d63380c4897c2b42667dfef1c482a27e56aa21') build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --sysconfdir=/etc make || return 1 make DESTDIR=$startdir/pkg install || return 1 } pacman.install: # arg 1: the new package version post_install() { echo ">>> PLEASE READ THE FOLLOWING!" echo ">>> Use of the new rankmirrors script on your /etc/pacman.d/ files is" echo ">>> highly recommended. Read rankmirrors --help for details. In" echo ">>> addition, mirrors are now listed by country, so move those that" echo ">>> are geographically close to you to the top." } # arg 1: the new package version # arg 2: the old package version post_upgrade() { echo ">>> PLEASE READ THE FOLLOWING!" if [ "$(vercmp $2 3.0.0)" -lt 0 ]; then echo ">>> The makepkg.conf syntax has changed, please note the new format" echo ">>> when merging the pacnew file with your old configuration." echo ">>>" fi echo ">>> Use of the new rankmirrors script on your /etc/pacman.d/ files is" echo ">>> highly recommended. Read rankmirrors --help for details. In" echo ">>> addition, mirrors are now listed by country, so move those that" echo ">>> are geographically close to you to the top." } op=$1 shift $op $*
participants (1)
-
Dan McGee