From 5b909c4bd83ecdef56c76195526124f238b4c304 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sat, 22 Oct 2011 01:24:48 +0200 Subject: Added a PKGBUILD for the Arch User Repository. --- misc/archlinux/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 misc/archlinux/PKGBUILD diff --git a/misc/archlinux/PKGBUILD b/misc/archlinux/PKGBUILD new file mode 100644 index 0000000..b299fdb --- /dev/null +++ b/misc/archlinux/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Grégoire Duchêne +pkgname=mppdown-git +pkgver=20110906 +pkgrel=1 +pkgdesc="A C++ implementation of the mdown specification" +arch=('i686' 'x86_64') +url="http://repo.or.cz/w/mppdown.git" +license=('custom:ISC') +depends=('boost-libs') +makedepends=('boost-build' 'boost') + +_gitroot="git://repo.or.cz/mppdown.git" +_gitname="mppdown" + +build() { + cd $srcdir + msg "Connecting to the GIT server...." + + if [[ -d $srcdir/$_gitname ]] ; then + cd $_gitname + git pull origin + msg "The local files are updated." + else + git clone $_gitroot + fi + + msg "GIT checkout done" + msg "Starting make..." + msg "Please be aware that compilation may take some time!" + + cd ${srcdir}/${_gitname} + bjam release mppdown +} + +package() { + cd ${srcdir}/${_gitname} + DIST=${pkgdir} bjam release dist +} -- cgit v1.2.3-70-g09d2