LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File PKGBUILD of Package zeroinstall-injector (Project home:fhoech:0install)

# Maintainer:  Florian Höch <florian.hoech at gmx.de>

pkgname=zeroinstall-injector
_pkgname=0install
pkgver=2.12.1
pkgrel=1
pkgdesc="A decentralised loosely-coupled secure installation system"
arch=('i686' 'x86_64')
url="http://0install.net"
license=('GPL2' 'LGPL')
depends=()
optdepends=('xdg-utils: desktop integration'
			'packagekit: packagekit integration')
install="$pkgname.install"

if [[ $CARCH = "x86_64" ]]; then
	source=("http://downloads.sourceforge.net/project/zero-install/$_pkgname/$pkgver/$_pkgname-linux-x86_64-$pkgver.tar.bz2")
	md5sums=('SKIP')
elif [[ $CARCH = "i686" ]]; then
	source=("http://downloads.sourceforge.net/project/zero-install/$_pkgname/$pkgver/$_pkgname-linux-i486-$pkgver.tar.bz2")
	md5sums=('SKIP')
else
	echo "Architecture not supported by this specific PKGBUILD: $CARCH"
	exit 1
fi

package() {
	if [[ $CARCH = "x86_64" ]]; then
		cd "${srcdir}/$_pkgname-linux-x86_64-$pkgver"
	elif [[ $CARCH = "i686" ]]; then
		cd "${srcdir}/$_pkgname-linux-i486-$pkgver"
	fi
	./install.sh $pkgdir/usr
}