contrib/dokuwiki/Pkgfile

31 lines
907 B
Plaintext

# Description: Standards compliant, nice and powerful Wiki
# URL: https://dokuwiki.org
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Simon Glossner, viper at hometux dot de
# Depends on: mod_php
name=dokuwiki
version=20200729
_version=2020-07-29
release=1
source=(http://download.dokuwiki.org/src/dokuwiki/dokuwiki-$_version.tgz)
build() {
cd $name-$_version
touch data/changes.log
mkdir -p $PKG/var/www/htdocs/dokuwiki/
cp -r ./ $PKG/var/www/htdocs/dokuwiki/
chown -R www.www $PKG/var/www/htdocs/dokuwiki/data
rm -f $PKG/var/www/htdocs/dokuwiki/{COPYING,README,VERSION}
rm -f $PKG/var/www/htdocs/dokuwiki/lib/{_fla,images/admin}/README
find $PKG -path '*lang/*' ! -wholename '*/en*' -type d | xargs rm -rf
find $PKG \(\
-iname '*readme*' -o \
-iname '*authors*' -o \
-iname '*thanks*' \) -exec rm -fr '{}' \+
}