# 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 GIT sources. # Maintainer: Jeffrey E. Bedard pkgname=jbxvt-git pkgver=0.4 pkgrel=1 pkgdesc="xcb terminal emulator" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/jefbed/jbxvt" license=('MIT') depends=('libxcb' 'gc' 'xcb-util-keysyms' 'xcb-util-wm' 'libx11' 'libutempter') makedepends=('git') provides=('xterm' 'xvt' 'rxvt') _gitroot=https://github.com/jefbed/jbxvt.git _gitname=jbxvt build() { cd "$srcdir" msg "Connecting to GIT server...." if [[ -d "$_gitname" ]]; then cd "$_gitname" && git pull origin msg "The local files are updated." else git clone "$_gitroot" "$_gitname" fi msg "GIT checkout done or server timeout" msg "Starting build..." rm -rf "$srcdir/$_gitname-build" git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build" cd "$srcdir/$_gitname-build" # BUILD HERE ./configure make } package() { cd "$srcdir/$_gitname-build" make DESTDIR="$pkgdir/" install } # vim:set ts=2 sw=2 et: