# 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 SVN sources. # Maintainer:: Your Name pkgname=NAME-bzr pkgver=VERSION pkgrel=1 pkgdesc="" arch=() url="" license=('GPL') groups=() depends=() makedepends=('bzr') provides=() conflicts=() replaces=() backup=() options=() install= source=($pkgname-$pkgver.tar.gz) noextract=() md5sums=() #generate with 'makepkg -g' # for launchpad repository, do NOT use lp:module URI. Always use # the "http" protocol. # For instance: # _bzrtrunk="http://bazaar.launchpad.net/~user/project/branch" # _bzrmod="project" _bzrtrunk=BZRURL _bzrmod=MODENAME build() { cd "$srcdir" msg "Connecting to the server...." if [ ! -d ./${_bzrmod} ]; then bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver} else cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver} fi msg "bzr checkout done or server timeout" msg "Removing old build directory..." rm -rf $srcdir/$_bzrmod-build msg "Creating build directory..." cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build cd "$srcdir/$_bzrmod-build" # # BUILD # msg "Starting make..." # Run autoconf/automake tools ./autogen.sh ./configure --prefix=/usr # For a cmake build, the following command may have been used: # cmake -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "$srcdir/$_bzrmod-build" make DESTDIR="$pkgdir/" install }