# Maintainer: Nathan Owe <ndowens.aur at gmail dot com>
pkgname=automysqlbackup
pkgver=2.5.1
_realpkgver=2.5.1-01
pkgrel=1
pkgdesc="Automatic daily/weekly MySQL backup script"
arch=('any')
url="http://members.lycos.co.uk/wipe_out/automysqlbackup/"
license=('GPL')
depends=('mysql-clients' 'bash')
install=$pkgname.install
backup=("etc/$pkgname/$pkgname.conf")
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$_realpkgver.sh" "$pkgname.conf")
md5sums=('164f9ff24f903ff7d03131f9353563ea'
         '65753227e46cc1738ddbaa6f9a58c096')
		 
build(){
	
	/bin/true
}
package() {
	cd $srcdir/
	
	install -d $pkgdir/{etc/$pkgname,usr/bin}

	install -Dm644 $pkgname.conf $pkgdir/etc/$pkgname/$pkgname.conf

	install -Dm755 $pkgname-$_realpkgver.sh $pkgdir/usr/bin/$pkgname
}
