[arch-commits] Commit in md4c (repos repos/extra-x86_64 repos/extra-x86_64/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Oct 9 06:15:14 UTC 2019
Date: Wednesday, October 9, 2019 @ 06:15:13
Author: arojas
Revision: 364202
archrelease: copy trunk to extra-x86_64
Added:
md4c/repos/
md4c/repos/extra-x86_64/
md4c/repos/extra-x86_64/PKGBUILD
(from rev 364201, md4c/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: md4c/repos/extra-x86_64/PKGBUILD (from rev 364201, md4c/trunk/PKGBUILD)
===================================================================
--- repos/extra-x86_64/PKGBUILD (rev 0)
+++ repos/extra-x86_64/PKGBUILD 2019-10-09 06:15:13 UTC (rev 364202)
@@ -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