aboutsummaryrefslogtreecommitdiffstats
path: root/main/file/APKBUILD
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2016-01-21 09:47:05 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-01-21 08:18:15 +0000
commit4246484caae3d6fe70f3012d4ec5ebdfc9b95119 (patch)
tree64587a3ddb8493055bc53ef9b3e97c2fadb82fa8 /main/file/APKBUILD
parentdc22d5617cdda529193e753640e9647a6663f4c2 (diff)
downloadaports-4246484caae3d6fe70f3012d4ec5ebdfc9b95119.tar.bz2
aports-4246484caae3d6fe70f3012d4ec5ebdfc9b95119.tar.xz
main/file: split libmagic and cleanups
Diffstat (limited to 'main/file/APKBUILD')
-rw-r--r--main/file/APKBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/main/file/APKBUILD b/main/file/APKBUILD
index ceff2e635b..6615412c2a 100644
--- a/main/file/APKBUILD
+++ b/main/file/APKBUILD
@@ -1,17 +1,19 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.25
-pkgrel=0
+pkgrel=1
pkgdesc="File type identification utility"
url="http://www.darwinsys.com/file/"
arch="all"
license="BSD"
depends=""
-source="ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz
- "
-subpackages="$pkgname-dev $pkgname-doc"
+source="ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"
+
+subpackages="$pkgname-dev $pkgname-doc libmagic"
+
+_builddir="$srcdir"/$pkgname-$pkgver
-_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
@@ -35,10 +37,16 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
+libmagic() {
+ pkgdesc="File type identification library"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/lib "$pkgdir"/usr/share "$subpkgdir"/usr
+}
+
md5sums="e6a972d4e10d9e76407a432f4a63cd4c file-5.25.tar.gz"
sha256sums="3735381563f69fb4239470b8c51b876a80425348b8285a7cded8b61d6b890eca file-5.25.tar.gz"
sha512sums="4a5176a7e80df2bb7e45916490433d22eb98a442d49d04146afcbdcf92ff619ea3e73e95c8991e6b6a0628efb9d127bfa4aafc1cae523f8261ca693bc5e13402 file-5.25.tar.gz"