Created
May 16, 2012 08:52
-
-
Save sschober/2708822 to your computer and use it in GitHub Desktop.
Changes to sundown PKGBUILD to enable third-party development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/PKGBUILD b/PKGBUILD | |
index 19bc728..2a7f90c 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -3,7 +3,7 @@ | |
# Maintainer: Your Name <[email protected]> | |
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