blob: b839f39d7aba413a7505f5d3f553f8b4fe152bec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Roberto Alsina <ralsina@kde.org>
pkgname=nicolino
pkgver=0.26.2
pkgrel=1
pkgdesc="A fast, modular static site generator written in Crystal"
arch=("x86_64" "aarch64")
url="https://github.com/ralsina/nicolino"
license=("MIT")
depends=("crystal>=1.21.0" "pandoc" "libvips" "libyaml" "lua54")
makedepends=("shards" "git")
# The lexbor shard compiles its bundled C library honoring $CFLAGS; with
# makepkg's LTO flags that produces GCC LTO bitcode which ld.lld (used by
# the Crystal linker) cannot read, failing with undefined lexbor symbols.
options=(!lto)
source=("$pkgname-$pkgver::git+https://github.com/ralsina/nicolino.git#tag=v$pkgver")
sha256sums=('6167a73ab20192be708bb0628dbbb7ed814c2831d234da0e8aa4d00cd93a4a41')
prepare() {
cd "$pkgname-$pkgver"
# makepkg's git checkout does not remove untracked files, so a lib/
# left by a previous build attempt survives; shards then skips the
# postinstall hooks of already-installed shards and silently reuses a
# stale liblxb.a (undefined lexbor symbols at link time). Start clean.
rm -rf lib
}
build() {
cd "$pkgname-$pkgver"
shards build --release --error-trace
}
package() {
cd "$pkgname-$pkgver"
# Install binary
install -Dm755 "bin/nicolino" "$pkgdir/usr/bin/nicolino"
# Install license
install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|