# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines # for more information on packaging from bazaar sources. # Contributor: Your Name pkgname=NAME-bzr pkgver=VERSION pkgrel=1 pkgdesc="" arch=() url="" license=('GPL') groups=() depends=() makedepends=('bzr') provides=(NAME) conflicts=(NAME) replaces=() backup=() options=() install= source=() noextract=() _bzrtrunk="BZRURL" _bzrmod="MODENAME" build() { cd "$srcdir" msg "Connecting to Launchpad server...." if [ -d $_bzrmod ] ; then cd $_bzrmod bzr merge|| return 1 msg "The local files are updated." else bzr branch $_bzrtrunk/$_bzrmod || return 1 fi msg "Bazaar checkout done or server timeout" rm -rf "$srcdir/$_bzrmod-build" cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build" cd "$srcdir/$_bzrmod-build" # # BUILD HERE # ./autogen.sh ./configure --prefix=/usr make || return 1 make DESTDIR="$pkgdir/" install || return 1 }