aboutsummaryrefslogtreecommitdiffstats
path: root/community/ikiwiki/APKBUILD
blob: e2c04c9577cabe1e0a17a42ade8a2197f7c3bfcb (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
41
42
43
44
45
46
47
48
49
50
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=ikiwiki
pkgver=3.20200202.4
pkgrel=0
pkgdesc="Ikiwiki is a wiki compiler. It converts wiki pages into HTML pages suitable for publishing on a website."
arch="noarch"
license="GPL-2.0-or-later"
url="https://ikiwiki.info"
depends="
	perl-cgi-formbuilder
	perl-cgi-session
	perl-html-parser
	perl-html-scrubber
	perl-html-template
	perl-locale-gettext
	perl-mail-sendmail
	perl-rpc-xml
	perl-text-markdown
	perl-timedate
	perl-time-duration
	perl-uri
	perl-yaml
	perl-yaml-libyaml
	"
source="https://git.joeyh.name/index.cgi/ikiwiki.git/snapshot/ikiwiki-$pkgver.tar.gz"
subpackages="$pkgname-doc"

prepare() {
	default_prepare

	# Install module into the vendor directories
	sed -i -e 's/sbin/bin/g' Makefile.PL
}

build() {
	perl Makefile.PL PREFIX="/usr" INSTALL_BASE= INSTALLDIRS=vendor
	make PREFIX="/usr"
}

package() {
	make install DESTDIR="$pkgdir"

	# otherwise perl breaks
	find "$pkgdir" \( -name '.packlist' -or -name '*.pod' \) -exec rm '{}' +
}

sha512sums="
171509bba0d5d80ebb089cb8b48cd0a75a0a90a1a0a8af8b627097f24a4033cebee4df1bb652c91a0c6cb73e08a182c551ac1bbaca15ada698455dfba83a78b8  ikiwiki-3.20200202.4.tar.gz
"