From b1eb50599e4db7eb4501af75cbbfa22007081ea5 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 14 Jun 2018 02:22:19 -0500 Subject: The New Plan all pkgs needed to bootstrap -> system others -> user --- system/file/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 system/file/APKBUILD (limited to 'system/file/APKBUILD') diff --git a/system/file/APKBUILD b/system/file/APKBUILD new file mode 100644 index 000000000..58477ab71 --- /dev/null +++ b/system/file/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Valery Kartel +# Maintainer: Natanael Copa +pkgname=file +pkgver=5.32 +pkgrel=0 +pkgdesc="File type identification utility" +url="http://www.darwinsys.com/file/" +arch="all" +license="BSD" +subpackages="$pkgname-dev $pkgname-doc libmagic" +source="ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --datadir=/usr/share + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +libmagic() { + pkgdesc="File type identification library" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr +} + +sha512sums="315343229fa196335389544ee8010e9e80995ef4721938492dedcfb0465dfc45e1feb96f26dfe53cab484fb5d9bac54d2d72917fbfd28a1d998c6ad8c8f9792f file-5.32.tar.gz" -- cgit v1.2.3-70-g09d2