You are not logged in.
I've created a little package that can be used to update the /etc/pacman.conf file with extra unofficial repositories for special-interest packages. It gets the config data from another package called pacmanex-data which can be updated with pacman -S in the usual way.
It is experimental and I am putting it out there for comment in my way of hoping to resolve some debate over how new packages should be integrated into the official repositories. I know this doesnt resolve the whole argument... Right now the repository config file that merges into the pacman.conf file is on my webserver, but if use of this tool is adopted a better spot for it can be considered along with what procedures should be taken to get an unofficial repository listed in it.
but anyway... here are the two PKGBUILD's
# Contributed by Clint Webb (arch@cjdj.org)
pkgname=pacmanex
pkgver=0.1.1
pkgrel=5
pkgdesc="Tool to automatically update pacman.conf with extended repositories."
url="http://www.cjdj.org/arch/src/pacmanex/"
makedepends=('gcc')
depends=('glibc')
source=(http://www.cjdj.org/arch/src/pacmanex/main.c
http://www.cjdj.org/arch/src/pacmanex/makefile
http://www.cjdj.org/arch/src/pacmanex/pacmanex.h)
md5sums=('7707aa25fb2fb993fa50101025ad99af'
'549c91765931056804c7a5919ecae95c'
'be3eaebf04c5c52e004f551e7339b6c1')
build() {
mkdir -p $startdir/pkg/usr/bin
make
cp pacmanex $startdir/pkg/usr/bin
}
# Contributed by Clint Webb (arch@cjdj.org)
pkgname=pacmanex-data
pkgver=0.1.0
pkgrel=3
pkgdesc="Repository data for pacmanex."
url="http://www.cjdj.org/arch/src/pacmanex/"
makedepends=()
#backup=()
depends=('pacmanex')
install=pacmanex-data.install
source=(http://www.cjdj.org/arch/data/pacmanex/repos.txt)
#md5sums=('1c40815878cded724919c01b3caa5a')
build() {
mkdir -p $startdir/pkg/var/pacmanex
cp repos.txt $startdir/pkg/var/pacmanex/repos-0.1.0.txt
}
and the pacmanex-data.install
post_install() {
rm /var/pacmanex/repos.txt
ln -s /var/pacmanex/repos-0.1.0.txt /var/pacmanex/repos.txt
pacmanex
echo /etc/pacman.conf has been updated, you should do another pacman -Syu
}
post_upgrade() {
rm /var/pacmanex/repos.txt
ln -s /var/pacmanex/repos-0.1.0.txt /var/pacmanex/repos.txt
pacmanex
echo /etc/pacman.conf has been updated, you should do another pacman -Syu
}
pre_remove() {
/bin/true
}
post_remove() {
echo entries in /etc/pacman.conf have not been removed.
rm -R /var/pacmanex
/bin/true
}
op=$1
shift
$op $*
[/quote]
Offline