Created
June 24, 2012 23:16
-
-
Save anonymous/2985442 to your computer and use it in GitHub Desktop.
Ikiwiki PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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