summaryrefslogtreecommitdiffstats
path: root/main/file/APKBUILD
blob: 045a917912e6bae080d2adb05b40c3cdd2a2e27e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.14
pkgrel=0
pkgdesc="File type identification utility"
url="http://www.darwinsys.com/file/"
arch="all"
license="custom"
depends=
source="ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr --datadir=/usr/share
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="c26625f1d6773ad4bc5a87c0e315632c  file-5.14.tar.gz"
sha256sums="461ba01dd0900a3b7c2dcd901b04903192c07887a9c1928af0be507572c77fe4  file-5.14.tar.gz"
sha512sums="76b1802234a4da30221e3f0bbbda3416fb40fb4cbaf1129f7b27e8dced16b074be1a14679170e9ef96ba75ef0e301eea48a1a0c084c68440efacc275b3e91857  file-5.14.tar.gz"