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

Jelle van der Waa jelle at archlinux.org
Tue Dec 22 21:32:41 UTC 2020


    Date: Tuesday, December 22, 2020 @ 21:32:40
  Author: jelle
Revision: 783003

Add mdbook pkgbuild

Added:
  mdbook/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-22 21:32:40 UTC (rev 783003)
@@ -0,0 +1,30 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Fabio 'Lolix' Loli <fabio.loli at disroot.org> -> https://github.com/FabioLolix
+# Contributor: Moritz Schönherr <moritz.schoenherr at gmail.com>
+
+pkgname=mdbook
+pkgver=0.4.4
+pkgrel=2
+pkgdesc="Create book from markdown files, like Gitbook but implemented in Rust"
+url="https://github.com/rust-lang-nursery/mdBook"
+arch=(x86_64)
+license=(MPL2)
+makedepends=(rust cargo)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rust-lang-nursery/mdBook/archive/v${pkgver}.tar.gz")
+sha256sums=('eaf01085bd25e2efa07b561148afa5e3da3386e5f2c35b245961dc485562c154')
+# https://github.com/rust-lang-nursery/mdBook/blob/master/CHANGELOG.md
+
+build() {
+  cd "mdBook-${pkgver}"
+  cargo build --release
+}
+
+check() {
+  cd "mdBook-${pkgver}"
+  cargo test
+}
+
+package() {
+  cd "mdBook-${pkgver}"
+  install -Dm 755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+}



More information about the arch-commits mailing list