summaryrefslogtreecommitdiff
path: root/system/file
diff options
context:
space:
mode:
Diffstat (limited to 'system/file')
-rw-r--r--system/file/APKBUILD40
1 files changed, 40 insertions, 0 deletions
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 <valery.kartel@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+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"