summaryrefslogblamecommitdiff
path: root/system/debianutils/APKBUILD
blob: fbcdfe0416864d0f56d5f7c93a2da48e848922d6 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
            
        



                                                       
                                   

                                                                      
          
                                                 




                                                                                      

                                 











                                         
         
                              

                                                        


                                                                                     

 
                                                                                                                                                                       
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=debianutils
pkgver=4.8.6
pkgrel=1
pkgdesc="Useful utilities from Debian"
url="https://packages.qa.debian.org/d/debianutils.html"
arch="all"
options="!check"  # No test suite.
license="BSD-3-Clause AND GPL-2.0+"
depends="coreutils mawk"  # awk, cat, and rm are required by add-shell
makedepends="grep"  # early package, declare these
install=""
subpackages="$pkgname-doc $pkgname-which::noarch"
source="http://ftp.debian.org/debian/pool/main/d/$pkgname/${pkgname}_${pkgver}.tar.xz"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

which() {
	provides_priority="10"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/which "$subpkgdir"/usr/bin/
	# This will emit a warning about docs on abuild, but this is expected.
	mkdir -p "$subpkgdir"/usr/share/man/man1
	mv "${pkgdir}-doc"/usr/share/man/man1/which* "$subpkgdir"/usr/share/man/man1/
}

sha512sums="5913729cc3c56962e8939b71803258952df0d7204df8090a7504fbefc7f5d1da8e749d606fe23148ea3294909ef172bc1f4f821690169e861729caab70921a2f  debianutils_4.8.6.tar.xz"