# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=myrepos pkgver=1.20141024 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="34d09e92b86f2db69e1f64d68fddafe3 myrepos-1.20141024.tar.gz" sha256sums="7b68183476867d15d6f111fc9678335b94824dcfa09f07c761a72d64cdf5ad4a myrepos-1.20141024.tar.gz" sha512sums="d39428bc9858a3d9649ff841fa688a5cb92632bf957af9101c7f7e709d2821dbc38a2ab5400d9fe31208159873156cc6d740538b5567e758c35afb01744000d6 myrepos-1.20141024.tar.gz"