[arch-commits] Commit in (lowdown lowdown/repos lowdown/trunk lowdown/trunk/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Tue Nov 2 01:42:24 UTC 2021


    Date: Tuesday, November 2, 2021 @ 01:42:23
  Author: grawlinson
Revision: 1035371

addpkg: lowdown 0.10.0-1

Added:
  lowdown/
  lowdown/repos/
  lowdown/trunk/
  lowdown/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: lowdown/trunk/PKGBUILD
===================================================================
--- lowdown/trunk/PKGBUILD	                        (rev 0)
+++ lowdown/trunk/PKGBUILD	2021-11-02 01:42:23 UTC (rev 1035371)
@@ -0,0 +1,39 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Adrián Pérez de Castro <aperez at igalia.com>
+
+pkgname=lowdown
+pkgdesc="A simple Markdown translator"
+pkgver=0.10.0
+_pkgver="VERSION_${pkgver//./_}"
+pkgrel=1
+license=('ISC')
+url="https://kristaps.bsd.lv/lowdown"
+arch=('x86_64')
+depends=('glibc' 'libmd')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kristapsdz/lowdown/archive/$_pkgver.tar.gz")
+sha512sums=('7454e618607628ec0a1649f44f5ec64f8778ecaa151f6aad4984935e297abfe8e84ffc321d3c93cec5d336ff14b6bf9a0ff9054e7363cc58ba708a5b60db9048')
+b2sums=('93d87e3aca2466398a625750b928062fbafd26311899e52ddd8264218675e78d30714c920f3331619fcd510a92cc6046401c946f5bd1465d6fd46f26937318ac')
+
+prepare() {
+  cd "$pkgname-$_pkgver"
+}
+
+build () {
+  cd "$pkgname-$_pkgver"
+	./configure PREFIX=/usr MANDIR=/usr/share/man
+	make
+}
+
+check () {
+	make -C "$pkgname-$_pkgver" regress
+}
+
+package () {
+  cd "$pkgname-$_pkgver"
+
+  # package
+	make DESTDIR="$pkgdir" install
+
+  # license
+	install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
+}



More information about the arch-commits mailing list