Commit 1d67587c authored by Allan McRae's avatar Allan McRae
Browse files

Add PKGBUILD-bzr.proto



Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
parent 20007927
# 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 <youremail@domain.com>
pkgname=NAME-bzr
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
url=""
license=('GPL')
groups=()
depends=()
makedepends=('bzr')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=()
noextract=()
md5sums=() #generate with 'makepkg -g'
_bzrtrunk="BZRURL"
_bzrmod="MODENAME"
build() {
cd "$srcdir"
msg "Connecting to Bazaar server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "Bazaar checkout done or server timeout"
msg "Starting make..."
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
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment