aboutsummaryrefslogblamecommitdiffstats
path: root/community/xbps/APKBUILD
blob: cd79e38e1a075b4bd59df453ab2f0d7b5f4d94dc (plain) (tree)
1
2
3
4
5

                                                    
            
           
        









                                                  
                                                                                             
                                                  

                            
                                   


                      
 



                                   

                                             



                      





                                                                               


            
                                               
                  

                                                              
                                                    


           
                                              
                  

                                                  






                                                   

 
                                                                                                                                                              
                                                                                                                                                                            
                                                                                                                                                       
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=xbps
pkgver=0.52
pkgrel=1
pkgdesc="The X Binary Package System"
arch="all"
url="https://github.com/voidlinux/xbps"
license="BSD"
depends="ca-certificates"
makedepends="zlib-dev libarchive-dev libressl-dev"
subpackages="$pkgname-dev $pkgname-doc
	$pkgname-bash-completion:bashcomp:noarch
	$pkgname-zsh-completion:zshcomp:noarch"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/voidlinux/$pkgname/archive/$pkgver.tar.gz
	moving-_unused-macro-to-_unused_attr.patch
	disable-Werror.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--bindir=/usr/bin \
		--localstatedir=/var/lib/xbps
	make
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir/" install

	install -D -m 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
	install -D -m 644 COPYING.3RDPARTY \
		"$pkgdir/usr/share/licenses/$pkgname/COPYING.3RDPARTY"
}

bashcomp() {
	pkgdesc="Bash completions for $pkgname"
	depends=""
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	_submv usr/share/bash-completion/completions
}

zshcomp() {
	pkgdesc="ZSH completions for $pkgname"
	depends=""
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

	_submv usr/share/zsh/site-functions
}

_submv() {
	local path="$1"
	mkdir -p "$subpkgdir"/${path%/*}
	mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/
}

sha512sums="99a86abac4e8c3a7e4d6bb72c78a1c1b72592022ab0f90f794227d8fa6194a04e0411fcedc4fffb6809dcf146aa6e7f9b12e3a9854e024458f1b9c4573b7379d  xbps-0.52.tar.gz
71441115a258efff44a0768a7fb731f4f3730c4ff75279650ac93c051d49ae3153d8bdeaa534cb09681d4b2d1dfba5b9a79b0cdd30a254d84558fd8ac40d2414  moving-_unused-macro-to-_unused_attr.patch
a761edd8fd358b500337fcef79f6163ef642fc387f97d952fec0838baa786d585f21e34cd066cba1918f474bccd7decbad2587b91f125b75e308b2dfe8f4721a  disable-Werror.patch"