aboutsummaryrefslogblamecommitdiffstats
path: root/main/myrepos/APKBUILD
blob: 50da6557f0fcb65003eceab28558d57930e39d4f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                               
                                                              
               
                 
        
                                               
                                      

               
                  

              
             

                          
                                                                                          
 
                                    


                        
                             



                       
                                                          







                                                                       
                   






                                                                              
               

 


                                                                                                                                                                        
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=myrepos
pkgver=1.20160123
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="ab3891c9f542dcbb7ed7fb097bfa23b4  myrepos-1.20160123.tar.gz"
sha256sums="13d3b2c309d8130896e54456ae466763dc187433f737de12179f5e05cb63439c  myrepos-1.20160123.tar.gz"
sha512sums="ad22f0369530347d104815338f27f5b375b88f323ef3821040db7270e179974018e269ecb650d7fd3a3d42ad62b17dfb7be43645f25e06578e0269f1f744ee4d  myrepos-1.20160123.tar.gz"