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>
8 pkgdesc="Standards compliant, fast, secure markdown processing library in C; includes sundown and smartypants executables."
10 url="https://github.com/tanoku/sundown"
14 md5sums=('aa76e1df60e6a140b4061c6d33a6871a')
16 _gitroot=git://github.com/tanoku/sundown.git
21 msg "Connecting to GIT server...."
23 if [[ -d "$_gitname" ]]; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
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"
41 install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
43 cd "$srcdir/$_gitname-build"
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: