# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=myrepos
pkgver=1.20180726
pkgrel=2
pkgdesc="A multiple repository management tool"
url="https://git.joeyh.name/git/myrepos.git"
arch="noarch"
license="GPL-2.0-or-later"
depends="perl git"
replaces="mr"
subpackages="$pkgname-doc"
source="https://git.joeyh.name/index.cgi/myrepos.git/snapshot/myrepos-$pkgver.tar.gz"

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README
}

sha512sums="
cf39208ecf1fc4008cf29c1585d33e9b17dc08350d2bc816a4ce0b4e12eaceffcf7bfbbf2036a70ac2aa979070da601e422ccbedd824f33354b20cfe3a988fef  myrepos-1.20180726.tar.gz
"
