# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=myrepos pkgver=1.20140227 pkgrel=0 pkgdesc="A multiple repository management tool" url="https://github.com/joeyh/myrepos" arch="noarch" license="GPL2+" depends="perl git" depends_dev="" makedepends="" replaces="mr" install="" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/joeyh/$pkgname/archive/$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" make || return 1 make test || return 1 } package() { cd "$_builddir" install -Dm755 mr "$pkgdir"/usr/bin/mr || return 1 cd "$_builddir"/lib for file in git-fake-bare git-svn unison; do install -Dpm 0644 $file \ "$pkgdir"/usr/share/$pkgname/$file || return 1 done } doc() { cd "$_builddir" mkdir -p "$subpkgdir"/usr/share/man || return 1 mv "$_builddir"/*.1 "$subpkgdir"/usr/share/man/ || return 1 # Sample configuration files for file in mrconfig mrconfig.complex; do install -Dpm 0644 $file \ "$subpkgdir"/usr/share/doc/$pkgname/$file || return 1 done } md5sums="c8458c484b3a9829aec6f1aca5ee2b6c myrepos-1.20140227.tar.gz" sha256sums="942a9bc891b3eaf13fec9911f15b08b4250d013de1befc05ac9b59a0757e1273 myrepos-1.20140227.tar.gz" sha512sums="12677da3a07ffb2c72c0b418a731ce2f29113c0556c332d6011558152070309a6d34ebe96a57c253ae874c0ae8f5dbb8f1204f40925b0d06bfb597d12b2ff22f myrepos-1.20140227.tar.gz"