diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2011-10-22 01:24:48 +0200 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2012-01-27 17:06:56 +0100 |
| commit | 5b909c4bd83ecdef56c76195526124f238b4c304 (patch) | |
| tree | ddb008c97cec5a5708247f7c8a1a3b11a43837ab | |
| parent | 8f06358951515e779a444523ddfe3dc9ab30154f (diff) | |
Added a PKGBUILD for the Arch User Repository.
| -rw-r--r-- | misc/archlinux/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
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 <gduchene@fastmail.net> +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 +} |
