[arch-commits] Commit in cobalt/repos (community-x86_64 community-x86_64/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Jan 18 19:29:17 UTC 2019


    Date: Friday, January 18, 2019 @ 19:29:16
  Author: anthraxx
Revision: 424165

archrelease: copy trunk to community-x86_64

Added:
  cobalt/repos/community-x86_64/
  cobalt/repos/community-x86_64/PKGBUILD
    (from rev 424164, cobalt/trunk/PKGBUILD)

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

Copied: cobalt/repos/community-x86_64/PKGBUILD (from rev 424164, cobalt/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-01-18 19:29:16 UTC (rev 424165)
@@ -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