blob: 02afd0a530e5c0eff2dd484400fc7667052d0c42 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=file
pkgver=5.20
pkgrel=0
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"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--datadir=/usr/share \
|| return 1
make || return 1
make tests || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="5d5e13eb3e0e13839da869a31790faf2 file-5.20.tar.gz"
sha256sums="5bc36bfbb83a009da25a7174848f1bc5824be03192a8fdce7f83dc897ed2d247 file-5.20.tar.gz"
sha512sums="ee3eff78c8776aa83cf2dfa66943359c488fb3d4b1458817fc39dcef8b16d536ad9fd5f138f37d785abe6f715d757b6729c8b9fc814f1016d164aa83f8511a5c file-5.20.tar.gz"
|