[arch-commits] Commit in (cobalt cobalt/repos cobalt/trunk cobalt/trunk/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Fri Jan 18 19:29:09 UTC 2019
Date: Friday, January 18, 2019 @ 19:29:08
Author: anthraxx
Revision: 424164
addpkg: cobalt 0.15.0-2
Added:
cobalt/
cobalt/repos/
cobalt/trunk/
cobalt/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Added: cobalt/trunk/PKGBUILD
===================================================================
--- cobalt/trunk/PKGBUILD (rev 0)
+++ cobalt/trunk/PKGBUILD 2019-01-18 19:29:08 UTC (rev 424164)
@@ -0,0 +1,32 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Stas Rudakou <stas at garage22 dot net>
+
+pkgname=cobalt
+pkgver=0.15.0
+pkgrel=2
+pkgdesc='Static site generator written in Rust'
+url='https://cobalt-org.github.io/'
+arch=('x86_64')
+license=('MIT')
+depends=('openssl')
+makedepends=('rust' 'cargo')
+source=(https://github.com/cobalt-org/cobalt.rs/archive/v${pkgver}/${pkgname}.rs-v${pkgver}.tar.gz)
+sha512sums=('70d414088feb99314514298d9bf9f4833c5217537449a5447014cb58a0b3ec7ee7770fdb88d1d67acebc960aeaec6832e163d13de26e9a649f984628b497f290')
+
+build() {
+ cd ${pkgname}.rs-${pkgver}
+ cargo build --release --locked --features 'syntax-highlight sass'
+}
+
+cheeck() {
+ cd ${pkgname}.rs-${pkgver}
+ cargo test --release --locked
+}
+
+package() {
+ cd ${pkgname}.rs-${pkgver}
+ install -Dm 755 target/release/cobalt -t "${pkgdir}/usr/bin"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list