You are not logged in.
pkgrel=1
pkgdesc="The Zero Install Injector (0launch)"
url="http://0install.net/injector.html"
license="LGPL"
depends=(python gnupg pygtk)
makedepends=(python gnupg)
conflicts=()
replaces=()
backup=()
install=
source=(http://osdn.dl.sourceforge.net/sourceforge/zero-install/$pkgname-$pkgver.tar.gz.gpg)
md5sums=()
build() {
cd $startdir/src/
gpg --recv-key --keyserver www.keyserver.net 59A53CC1
gpg $pkgname-$pkgver.tar.gz.gpg
tar xzf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
python setup.py install --home $startdir/pkg/usr install
cd $startdir/pkg
mv usr/bin bin
mv usr/lib/python usr/lib/python2.4
}
Moving around a few directories in the pkg directory doesn't seem too bad, but one of those moves introduces a version number of another package into a directory name. I could use a line of sed to extract the version number of python from 'python -V'. Right now that returns 'Python 2.4.1', but I don't dare to take the bet it will work with future versions of python.
Maybe I should let it tell the user on installation that he needs to put export PYTHONPATH="/usr/lib/python:/usr/lib/python2.4" in /etc/profile? But IIUC then all of python will stop working as soon as we get version 2.5!
What do you guys think?
Anyway, the PKGBUILD does work, and that's the most important
I wish life was as simple as editing config files
Offline
(my sed code would break on longer or shorter version numbers)
I wish life was as simple as editing config files
Offline
If you're going to use the PKGBUILD above, you might also want the following PKGBUILD and install files:
pkgname=ROX-All
pkgver=0.3
pkgrel=1
pkgdesc="links to packages available trough zero install (/usr/share/apps)"
url="http://rox.sourceforge.net/phpwiki/index.php/ROX-All"
license=
depends=(zeroinstall-injector)
conflicts=()
replaces=()
backup=()
install=ROX-All.install
source=(http://osdn.dl.sourceforge.net/sourceforge/rox/$pkgname-$pkgver.tgz)
md5sums=('30dc831b3f94a14c9786ada8f28295a2')
build() {
mkdir -p $startdir/pkg/usr/share
cp -r $startdir/src/$pkgname-$pkgver $startdir/pkg/usr/share/apps
rm -r $startdir/pkg/usr/share/apps/0launch $startdir/pkg/usr/share/apps/README
}
# arg 1: the new package version
post_install() {
echo
echo --> ROX-All
echo --> Please run the following command as a user (no root rights needed!)
echo --> /usr/share/apps/rox /usr/share/apps
echo
/bin/true
}
op=$1
shift
$op $*
I wish life was as simple as editing config files
Offline