Skip to content

Instantly share code, notes, and snippets.

@peterhoeg
Created February 1, 2015 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterhoeg/0647a0ccd8d70589f681 to your computer and use it in GitHub Desktop.
Save peterhoeg/0647a0ccd8d70589f681 to your computer and use it in GitHub Desktop.
PKGBUILD for ikiwiki
# Maintainer: Christoph Vigano <mail@cvigano.de>
pkgname=ikiwiki
pkgver=3.20150107
pkgrel=1
pkgdesc="wiki/blog compiler"
arch=(any)
license=('GPL')
url="http://ikiwiki.info"
depends=(perl-yaml perl-text-markdown perl-cgi-session perl-cgi-formbuilder perl-timedate perl-html-parser perl-html-scrubber perl-mail-sendmail perl-time-duration perl-uri perl-html-template perl-locale-gettext perl-rpc-xml perl-yaml-libyaml)
source=("http://ftp.de.debian.org/debian/pool/main/i/${pkgname}/${pkgname}_${pkgver}.tar.gz")
backup=("etc/ikiwiki/wikilist")
build() {
cd "$srcdir/$pkgname"
# Install module into the vendor directories
sed -i -e 's/sbin/bin/g' Makefile.PL
perl Makefile.PL PREFIX="/usr" INSTALL_BASE= INSTALLDIRS=vendor
make PREFIX="/usr"
}
package() {
cd "$srcdir/$pkgname"
make install DESTDIR="$pkgdir"
# otherwise perl breaks
find "$pkgdir" -name '.packlist' -or -name '*.pod' -exec rm '{}' +
#RST plugin docutils hack
sed -i 's/env python/python2/' "$pkgdir"/usr/lib/ikiwiki/plugins/rst
}
md5sums=('db45b1b3d50d0448e4d33be132580334')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment