summaryrefslogblamecommitdiff
path: root/system/man-db/APKBUILD
blob: a719c6a2de31e3eb8b80f861ad278ecf45ba202b (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  

            


                                                                                
                  
                    

                                                  
                                              
                                                                                 
                                 
                                        
















                                                                                                  




                      






                                                       

                                                                                                                                                                 
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=man-db
pkgver=2.8.3
pkgrel=0
pkgdesc="The man command and related utilities for examining on-line help files"
url="http://www.nongnu.org/man-db/"
arch="all"
license="GPL-2.0+"
depends="groff less"
makedepends_host="db-dev libpipeline-dev zlib-dev"
subpackages="$pkgname-doc $pkgname-lang"
options="!check"  # requires //IGNORE in iconv
source="http://download.savannah.nongnu.org/releases/man-db/man-db-$pkgver.tar.xz
	man-db-2.8.3-iconv.patch"
triggers="man-db.trigger=/usr/share/man"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-setuid \
		--with-sections="1 1p 1x 2 2x 3 3p 3x 4 4x 5 5x 6 6x 7 7x 8 8x 9 0p tcl n l p o" \
		--enable-nls \
		--with-db=db
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	rm "${pkgdir}"/usr/lib/charset.alias
	rm -r "${pkgdir}"/usr/lib/tmpfiles.d  # systemd
}

sha512sums="35d5dda7a2bda94978d10770d24d4c78b3c62c71a68cfeb400df61b0df289ed17aa8aa223d4ae3ffa094d76df8d9172b878230fd7b0397ce7728b9c8ac0b1745  man-db-2.8.3.tar.xz
4bc9efaafa30dedb6da9d2a62436cf570bef5603b98494ca3c565c3e338b57a481ed40af2312a20cd9f64f965fc0c45607403d829339700c57f9dc0022d7c6ed  man-db-2.8.3-iconv.patch"