[arch-commits] Commit in (md4c md4c/trunk md4c/trunk/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Oct 9 06:14:55 UTC 2019
Date: Wednesday, October 9, 2019 @ 06:14:55
Author: arojas
Revision: 364201
New Qt dependency
Added:
md4c/
md4c/trunk/
md4c/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: md4c/trunk/PKGBUILD
===================================================================
--- md4c/trunk/PKGBUILD (rev 0)
+++ md4c/trunk/PKGBUILD 2019-10-09 06:14:55 UTC (rev 364201)
@@ -0,0 +1,33 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=md4c
+pkgver=0.3.4
+pkgrel=1
+pkgdesc="C Markdown parser"
+arch=(x86_64)
+url="https://github.com/mity/md4c"
+license=(MIT)
+depends=(glibc)
+makedepends=(cmake chrpath)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/mity/md4c/archive/release-$pkgver.tar.gz")
+sha256sums=('cf3f6b75d4b1304551a68272d3b403e4cd0952d976a280e8b7db68090354486f')
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-release-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "$srcdir"/$pkgname-release-$pkgver/LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+
+ chrpath -d "$pkgdir"/usr/bin/md2html # Fix RPATH
+}
More information about the arch-commits
mailing list