# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=myrepos pkgver=1.20180726 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="https://git.joeyh.name/index.cgi/myrepos.git/snapshot/myrepos-${pkgver}.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver # secfixes: # 1.20180726-r0: # - CVE-2018-7032 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 default_doc } md5sums="4558e1f9f90d6004e561c0ff8b54a513 myrepos-1.20180726.tar.gz" sha256sums="bfb909037da678a1668f3f7f86efee7ee31f2bc66d90b83dd9e6b6a5f998c4e2 myrepos-1.20180726.tar.gz" sha512sums="cf39208ecf1fc4008cf29c1585d33e9b17dc08350d2bc816a4ce0b4e12eaceffcf7bfbbf2036a70ac2aa979070da601e422ccbedd824f33354b20cfe3a988fef myrepos-1.20180726.tar.gz"