Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sschober/2708822 to your computer and use it in GitHub Desktop.
Save sschober/2708822 to your computer and use it in GitHub Desktop.
Changes to sundown PKGBUILD to enable third-party development
diff --git a/PKGBUILD b/PKGBUILD
index 19bc728..2a7f90c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Maintainer: Your Name <youremail@domain.com>
pkgname=sundown-git
-pkgver=20110815
+pkgver=20120516
pkgrel=1
pkgdesc="Standards compliant, fast, secure markdown processing library in C; includes sundown and smartypants executables."
arch=('any')
@@ -34,17 +34,24 @@ build() {
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
+ # remove unused `-Wl` option to `gcc`
+ sed -i s/-Wl// Makefile
+
make all
}
package() {
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
-
+
cd "$srcdir/$_gitname-build"
-
- install -D -m755 smartypants "${pkgdir}/usr/bin/smartypants"
- install -D -m755 sundown "${pkgdir}/usr/bin/sundown"
+
+ install -D -m755 smartypants "${pkgdir}/usr/bin/smartypants"
+ install -D -m755 sundown "${pkgdir}/usr/bin/sundown"
install -D -m755 libsundown.so.1 "${pkgdir}/usr/lib/libsundown.so.1"
+ install -D -m755 src/markdown.h "${pkgdir}/usr/include/markdown.h"
+ install -D -m755 src/buffer.h "${pkgdir}/usr/include/buffer.h"
+ install -D -m755 src/autolink.h "${pkgdir}/usr/include/autolink.h"
+ install -D -m755 html/html.h "${pkgdir}/usr/include/html.h"
ln -s "${pkgdir}/usr/lib/libsundown.so.1" "${pkgdir}/usr/lib/libsundown.so"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment