blob: e8795c2ef96c7357e6062d0c32db92a5b9c41ec0 (
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
|
# Maintainer: Strahinya Radich <contact@strahinja.org>
pkgname=slweb
pkgver=0.9.16
pkgrel=1
pkgdesc="Simple static website generator"
arch=('x86_64')
url="https://strahinja.srht.site/slweb"
license=('GPL3')
source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~strahinja/slweb/archive/v$pkgver.tar.gz")
md5sums=('07cc22801f6847735b6798116e485c02')
optdepends=(
'katex: For math mode'
'git: For {git-log}'
'imagemagick: For img tag attributes'
)
build() {
cd "${pkgname}-v$pkgver"
# Some build environments insist on having those preset, which breaks
# the build; if you really want some of them, comment the 'unset' lines
# below, but note you are on your own wrt errors.
unset BINDIR CC CFLAGS CPPFLAGS DOCDIR HEADERS INSTALL LDFLAGS LIBS
unset MANPAGE MANPREFIX OBJS PROG SRC
make FALLBACKVER="${pkgver}-$pkgrel" DESTDIR="$pkgdir" PREFIX="/usr" all
}
package() {
cd "${pkgname}-v$pkgver"
unset BINDIR CC CFLAGS CPPFLAGS DOCDIR HEADERS INSTALL LDFLAGS LIBS
unset MANPAGE MANPREFIX OBJS PROG SRC
make FALLBACKVER="${pkgver}-$pkgrel" DESTDIR="$pkgdir" PREFIX="/usr" \
install
}
|