# Contributor: Matt Smith # Maintainer: Matt Smith pkgname=phpmyadmin pkgver=4.0.8 pkgrel=1 pkgdesc="A Web-based PHP tool for administering MySQL" url="http://www.phpmyadmin.net/" arch="noarch" license="GPL" depends="php php-mysql php-zip php-zlib php-bz2 php-ctype php-gd php-mcrypt" depends_dev= makedepends="$depends_dev" install="$pkgname.post-install" subpackages="$pkgname-doc" _fullpkgname=phpMyAdmin-$pkgver-all-languages source="http://downloads.sourceforge.net/$pkgname/$_fullpkgname.tar.gz $pkgname.apache2.conf " _builddir="$srcdir"/$_fullpkgname prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { return 0 } package() { cd "$_builddir" mkdir -p "$pkgdir"/usr/share/webapps/$pkgname \ "$pkgdir"/etc/$pkgname \ || return 1 # copy phpmyadmin cp -ra "$_builddir"/* "$pkgdir"/usr/share/webapps/$pkgname/ \ || return 1 # install the sample config install -m660 \ "$pkgdir"/usr/share/webapps/$pkgname/config.sample.inc.php \ "$pkgdir"/etc/$pkgname/config.inc.php \ || return 1 ln -fs /etc/$pkgname/config.inc.php \ "$pkgdir"/usr/share/webapps/$pkgname/config.inc.php \ || return 1 # install the apache2 config install -Dm644 "$srcdir"/$pkgname.apache2.conf \ "$pkgdir"/etc/apache2/conf.d/$pkgname.conf || return 1 # copy sample config mkdir -p "$pkgdir"/usr/share/$pkgname/ || return 1 mv "$pkgdir"/usr/share/webapps/$pkgname/config.sample.inc.php \ "$pkgdir"/usr/share/$pkgname/ || return 1 } doc() { cd "$_builddir" mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1 _docs="ChangeLog LICENSE README RELEASE-DATE-$pkgver" for _doc in $_docs; do mv "$pkgdir"/usr/share/webapps/$pkgname/$_doc \ "$subpkgdir"/usr/share/doc/$pkgname/ \ || return 1 done } md5sums="8094110a6a30f59c6412f8399abb9389 phpMyAdmin-4.0.8-all-languages.tar.gz 2d144825122042b4a2536ad789d66e8e phpmyadmin.apache2.conf" sha256sums="7c00d28af02c45d68bacac53fc23ebcfd180b4959f9933422f35015c2091030b phpMyAdmin-4.0.8-all-languages.tar.gz 4fbc1d0338ed7234a3d74f71910a24e467c8a0ec1dad31324e954741f93bd2d3 phpmyadmin.apache2.conf" sha512sums="a88ac7a5ba0fe8286fac393e4398cab7ca54e7fb7738515ab8990495b9ae68485784ff7885efcb8c121b2d23e8476caa30a8c950348b1717f8b0afe979d3b5a3 phpMyAdmin-4.0.8-all-languages.tar.gz c6af2960b95924c31cc05d90e7282ba9be6cb6eabb134b8bb627230a4253c017eca75132420a356acd6aecdce146e29666ed90fc90749820060a64478d3e2105 phpmyadmin.apache2.conf"