summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-05-14 21:59:09 +0300
committerCaleb Maclennan2020-05-14 21:59:09 +0300
commitef7e1b994e1302ad357bcefa6170bf157ff91562 (patch)
tree7bf278861b96ed3f7731f8a2d6bf4988c6bc2803
downloadaur-ef7e1b994e1302ad357bcefa6170bf157ff91562.tar.gz
Initial upload: comrak-git 0.7.0.r17.g500d73f-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD36
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5efea1c1329
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = comrak-git
+ pkgdesc = CommonMark + GFM compatible Markdown parser and renderer
+ pkgver = 0.7.0.r17.g500d73f
+ pkgrel = 1
+ url = https://github.com/kivikakk/comrak
+ arch = x86_64
+ arch = i686
+ license = MIT
+ license = custom
+ makedepends = cargo
+ makedepends = rust
+ provides = comrak
+ conflicts = comrak
+ source = git+https://github.com/kivikakk/comrak.git
+ sha256sums = SKIP
+
+pkgname = comrak-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2e7e8d1ca60
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+pkgname=comrak-git
+pkgver=0.7.0.r17.g500d73f
+pkgrel=1
+pkgdesc='CommonMark + GFM compatible Markdown parser and renderer'
+arch=('x86_64' 'i686')
+url="https://github.com/kivikakk/${pkgname%-git}"
+license=('MIT' 'custom')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+makedepends=('cargo' 'rust')
+source=("git+$url.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ git describe --tags --abbrev=7 HEAD |
+ sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "${pkgname%-git}"
+ cargo fetch
+}
+
+build() {
+ cd "${pkgname%-git}"
+ cargo build --release --locked --all-features
+}
+
+package () {
+ cd "${pkgname%-git}"
+ install -Dm0755 -t "$pkgdir/usr/bin/" target/release/${pkgname%-git}
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
+}