summaryrefslogblamecommitdiff
path: root/user/pax/APKBUILD
blob: edd736e5c604cf7996c852f740d3cc3cf158df67 (plain) (tree)





























                                                                                                                                                                       
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=pax
pkgver=20161104
pkgrel=0
pkgdesc="Portable Archive eXchange, the POSIX archival tool"
url="https://www.mirbsd.org/pax.htm"
arch="all"
license="BSD"
depends=""
depends_dev="libbsd-dev fts-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.debian.org/debian/pool/main/p/$pkgname/${pkgname}_$pkgver.orig.tar.xz"
builddir="$srcdir/$pkgname"

build() {
	cd "$builddir"
        ${CC} ${CPPFLAGS} ${CFLAGS} \
		-DHAVE_STRLCPY -DHAVE_VIS -DHAVE_STRMODE -DLONG_OFF_T -DHAVE_LINKAT \
		$(pkgconf --cflags libbsd) \
		-Wall ${LDFLAGS} *.c -o $pkgname $(pkgconf --libs libbsd) $(pkgconf --libs fts)
}

package() {
	cd "$builddir"
}

sha512sums="4ca17a412fde5c0de3ff9820a9a5c7e210e015ccddcc791f0c0936f45471dbbe1e96a97515e65d21e5d36a61b14e920eb3a9181ffeabad801663c812ee084c15  pax_20161104.orig.tar.xz"