# Maintainer: Natanael Copa pkgname=roundcubemail pkgver=0.5.1 pkgrel=0 pkgdesc="A PHP web-based mail client" url="http://www.roundcube.net" arch="noarch" license="GPL" install="$pkgname.post-upgrade" depends="php php-imap php-xml php-json" makedepends="" source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" _src="$srcdir"/roundcubemail-$pkgver prepare() { cd "$_src" # fix permissions find . -type f -print | xargs chmod a-x # remove .htaccess find . -name \.htaccess -print | xargs rm -f # fixup paths to use the right paths sed -i -e 's|temp/|/tmp/|' \ -e 's|config/|/etc/roundcube/|' \ -e 's|logs/|/var/log/roundcube/|' \ config/main.inc.php.dist || return 1 sed -i -e 's|logs/|/var/log/roundcube/|' \ -e 's|config/|/etc/roundcube/|' \ program/include/main.inc || return 1 # cleanup sed -i 's/\r//' SQL/mssql.initial.sql rm -rf logs temp installer } build() { return 0 } package() { _instdir="$pkgdir"/usr/share/webapps/roundcube mkdir -p "${_instdir}" cd "${_instdir}" cp -rp "$srcdir"/roundcubemail-$pkgver/* . # install config in /etc/roundcube so config files are not overwritten # on upgrades mkdir -p "$pkgdir"/etc/ mv config "$pkgdir"/etc/roundcube install -d "$pkgdir"/var/log/roundcube } md5sums="f462d4b3999121679ec103ba2dc38e8d roundcubemail-0.5.1.tar.gz"