Date: Wednesday, July 15, 2020 @ 05:56:39 Author: svenstaro Revision: 663830
Moving zola from AUR Added: zola/ zola/repos/ zola/trunk/ zola/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Added: zola/trunk/PKGBUILD =================================================================== --- zola/trunk/PKGBUILD (rev 0) +++ zola/trunk/PKGBUILD 2020-07-15 05:56:39 UTC (rev 663830) @@ -0,0 +1,30 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> +pkgname=zola +pkgver=0.11.0 +pkgrel=3 +pkgdesc="An opinionated static site generator" +arch=('x86_64') +url="https://github.com/getzola/zola" +depends=('gcc-libs') +makedepends=('rust') +license=('MIT') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/getzola/zola/archive/v${pkgver}.tar.gz") +sha256sums=('09840a55d13a81a7a04767d01e5e44cc3710e79c78f43f0ebde4a6a17e0728ca') + +build() { + cd zola-$pkgver + cargo build --release --locked +} + +check() { + cd zola-$pkgver + cargo test --release --locked +} + +package() { + cd zola-$pkgver + install -Dm755 target/release/zola "$pkgdir"/usr/bin/zola + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: