Commit 10c986bb authored by Leonardo Arena's avatar Leonardo Arena

main/myrepos: add check and modernize APKBUILD

parent 8bcd5f92
......@@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=myrepos
pkgver=1.20170129
pkgrel=0
pkgrel=1
pkgdesc="A multiple repository management tool"
url="https://git.joeyh.name/git/myrepos.git"
arch="noarch"
......@@ -14,28 +14,32 @@ replaces="mr"
install=""
subpackages="$pkgname-doc"
source="https://git.joeyh.name/index.cgi/myrepos.git/snapshot/myrepos-${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
cd "$builddir"
make || return 1
make test || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
install -Dm755 mr "$pkgdir"/usr/bin/mr || return 1
cd "$_builddir"/lib
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
}
check() {
cd "$builddir"
make test || return 1
}
doc() {
cd "$_builddir"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/man || return 1
mv "$_builddir"/*.1 "$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 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment