updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / sundown-git / PKGBUILD
blob19bc72890bf7c6ff49dcdaf5080513e3d92bc7ee
1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from GIT sources.
4 # Maintainer: Your Name <youremail@domain.com>
5 pkgname=sundown-git
6 pkgver=20110815
7 pkgrel=1
8 pkgdesc="Standards compliant, fast, secure markdown processing library in C; includes sundown and smartypants executables."
9 arch=('any')
10 url="https://github.com/tanoku/sundown"
11 license=('ISC')
12 makedepends=('git')
13 source=('LICENSE')
14 md5sums=('aa76e1df60e6a140b4061c6d33a6871a')
16 _gitroot=git://github.com/tanoku/sundown.git
17 _gitname=sundown
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [[ -d "$_gitname" ]]; then
24     cd "$_gitname" && git pull origin
25     msg "The local files are updated."
26   else
27     git clone "$_gitroot" "$_gitname"
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting build..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   make all
40 package() {
41   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
42   
43   cd "$srcdir/$_gitname-build"
44   
45   install -D -m755 smartypants "${pkgdir}/usr/bin/smartypants" 
46   install -D -m755 sundown "${pkgdir}/usr/bin/sundown" 
47   install -D -m755 libsundown.so.1 "${pkgdir}/usr/lib/libsundown.so.1"
48   ln -s "${pkgdir}/usr/lib/libsundown.so.1" "${pkgdir}/usr/lib/libsundown.so"
51 # vim:set ts=2 sw=2 et: