aboutsummaryrefslogtreecommitdiffstats
path: root/main/myrepos/APKBUILD
blob: d94e3201d3c763acbe937790bac2c8807d1cba55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=myrepos
pkgver=1.20150503
pkgrel=1
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
    default_doc
}

md5sums="8aea5027ad05f8ec3cc08c13a13114b8  myrepos-1.20150503.tar.gz"
sha256sums="6e61e2a0b298841cbc2ea0106fae7c628a5b34e705aafa7536848c60eb448e89  myrepos-1.20150503.tar.gz"
sha512sums="ea850c338c9488b964cffbbf510d65354b6773239d8ba7030e33a881ff7e0490cee6b3aa5f3ae0cd3a298bf874cc6d0edd344b9a801b162cb4b2cd11bfcdb1ee  myrepos-1.20150503.tar.gz"