Skip to content

Instantly share code, notes, and snippets.

Created June 24, 2012 23:16
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 anonymous/2985442 to your computer and use it in GitHub Desktop.
Save anonymous/2985442 to your computer and use it in GitHub Desktop.
Ikiwiki PKGBUILD
pkgname=ikiwiki
pkgver=3.20120516
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")
md5sums=('822547f8861a3080fafc46a0c7a641f3')
build() {
cd "$srcdir/$pkgname"
# Install module into the vendor directories
perl Makefile.PL PREFIX="/usr" 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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment