diff options
-rw-r--r-- | .AURINFO | 14 | ||||
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | hoedown.pc | 9 |
4 files changed, 77 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO new file mode 100644 index 000000000000..6e8e2eadf7a2 --- /dev/null +++ b/.AURINFO @@ -0,0 +1,14 @@ +pkgbase = hoedown-git + pkgdesc = Hoedown is a revived forkof Sundown, the Markdown parser based on the original code of the Upskirt library by Natacha Porté. + pkgver = 527 + pkgrel = 1 + url = https://github.com/hoedown/hoedown + arch = any + license = ISC + makedepends = git + conflicts = sundown-git + source = hoedown.pc + source = git+https://github.com/hoedown/hoedown.git + +pkgname = hoedown-git + diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0cbcc35151c4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = hoedown-git + pkgdesc = Hoedown is a revived forkof Sundown, the Markdown parser based on the original code of the Upskirt library by Natacha Porté. + pkgver = 527 + pkgrel = 1 + url = https://github.com/hoedown/hoedown + arch = any + license = ISC + makedepends = git + conflicts = sundown-git + source = hoedown.pc + source = git+https://github.com/hoedown/hoedown.git + md5sums = baffb7d05f3b0c75a7213d95a006f72d + md5sums = SKIP + +pkgname = hoedown-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f73acc640c83 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: "UnCO" Lin <trash__box <_[at]_> 163.com> +pkgname=hoedown-git +_pkgname=hoedown +pkgver=527 +pkgrel=1 +pkgdesc="Hoedown is a revived forkof Sundown, the Markdown parser based on the original code of the Upskirt library by Natacha Porté." +arch=('any') +url="https://github.com/hoedown/hoedown" +license=('ISC') +conflicts=('sundown-git') +makedepends=('git') +source=('hoedown.pc' + "git+https://github.com/${_pkgname}/${_pkgname}.git") +md5sums=('baffb7d05f3b0c75a7213d95a006f72d' + 'SKIP') + +pkgver() { + cd $_pkgname + git rev-list --count HEAD +} + +build() { + cd $_pkgname + make PREFIX=/usr +} + +package() { + cd $_pkgname + make PREFIX=/usr DESTDIR="$pkgdir" install + # install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE + # install -D -m755 smartypants "${pkgdir}"/usr/bin/smartypants + # install -D -m755 hoedown "${pkgdir}"/usr/bin/hoedown + # install -D -m755 libhoedown.so.3 "${pkgdir}"/usr/lib/libhoedown.so.3 + # ln -rs "${pkgdir}"/usr/lib/libhoedown.so.3 "${pkgdir}"/usr/lib/libhoedown.so + # install -d "${pkgdir}"/usr/include/hoedown + # cp src/*.h "${pkgdir}"/usr/include/hoedown/ + # install -D -m644 "${srcdir}"/hoedown.pc "${pkgdir}"/usr/share/pkgconfig/hoedown.pc +} diff --git a/hoedown.pc b/hoedown.pc new file mode 100644 index 000000000000..674b64640b51 --- /dev/null +++ b/hoedown.pc @@ -0,0 +1,9 @@ +prefix=/usr +libdir=${prefix}/lib +includedir=${prefix}/include/hoedown + +Name: Hoedown +Description: the Markdown parser based on the original code of the Upskirt library by Natacha Porté. +Version: 1.0.2 +Cflags: -I${includedir} +Libs: -L${libdir} -lhoedown |