summaryrefslogblamecommitdiff
path: root/system/pkgconf/APKBUILD
blob: 546f8b4433625bc075732c14ca0c54eee0d355b2 (plain) (tree)
1
2
3
4
5
6
7
8
                                                 
               
            
        
                                                              
                         

             


                       
                      
                                       
                                                                          

         







                                           

                                                                                                                                 


         
                  


           
                                      



                                                  
                   








                                                                             
                                                                                                                                                                   
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=pkgconf
pkgver=1.7.2
pkgrel=0
pkgdesc="Toolkit for maintaining development package metadata"
url="http://pkgconf.org/"
arch="all"
license="ISC"
depends=""
checkdepends="kyua atf"
makedepends=""
provides="pkgconfig=1"
subpackages="$pkgname-doc $pkgname-dev"
source="https://distfiles.dereferenced.org/pkgconf/pkgconf-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-pkg-config-dir=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	ln -s pkgconf "$pkgdir"/usr/bin/pkg-config
}

dev() {
	default_dev

	# Move pkg-config back to main package (default_dev implicitly moves
	# files /usr/bin/*-config to -dev).
	mv "$subpkgdir"/usr/bin/pkg-config "$pkgdir"/usr/bin/

	mkdir -p "$pkgdir"/usr/share/aclocal/
	mv "$subpkgdir"/usr/share/aclocal/pkg.m4 "$pkgdir"/usr/share/aclocal/
}

sha512sums="b0376178e93743fd844bdc94b5fa2678521ffe5022323e20f3c5196d500a87c3546d0edc2ac22e92cb528348116e2826d6f144bd7bd18d3f0afaa5cda74f25cd  pkgconf-1.7.2.tar.xz"