aboutsummaryrefslogtreecommitdiffstats
path: root/community/myrepos/APKBUILD
blob: 655671c4433720628265dc7cf2954d051cefae45 (plain) (blame)
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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=myrepos
pkgver=1.20180726
pkgrel=0
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() {
	install -Dm755 mr "$pkgdir"/usr/bin/mr
	cd "$builddir"/lib
	for file in git-fake-bare git-svn unison; do
		install -Dpm 0644 $file \
		"$pkgdir"/usr/share/$pkgname/$file
	done
}

doc() {
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/share/man
	mv "$builddir"/*.1 "$subpkgdir"/usr/share/man/
	# Sample configuration files
	for file in mrconfig mrconfig.complex; do
		install -Dpm 0644 $file \
			"$subpkgdir"/usr/share/doc/$pkgname/$file
	done
	default_doc
}

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