core/file/PKGBUILD

46 lines
1.0 KiB
Bash
Raw Normal View History

2010-03-13 23:25:19 +08:00
pkgname=file
2018-04-17 20:08:28 +08:00
pkgver=5.33
2018-05-02 07:18:52 +08:00
pkgrel=2
pkgdesc='File type identification utility'
arch=('x86_64')
2010-03-13 23:25:19 +08:00
license=('custom')
2018-05-02 07:18:52 +08:00
groups=('base' 'base-devel')
url='https://www.darwinsys.com/file/'
2010-03-13 23:25:19 +08:00
depends=('glibc' 'zlib')
2018-05-02 07:18:52 +08:00
source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc})
validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
md5sums=('bbe6db96e3a9ca9554dce647390540ef'
'SKIP')
2010-03-13 23:25:19 +08:00
2018-05-02 07:18:52 +08:00
prepare() {
cd $pkgname-$pkgver
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
msg2 "Applying patch ${filename##*/}"
patch -p1 -N -i "$srcdir/${filename##*/}"
fi
done
:
}
2018-05-02 07:18:52 +08:00
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --datadir=/usr/share/file --enable-fsect-man5
make
}
2015-01-14 23:45:19 +08:00
check() {
cd $pkgname-$pkgver
make check
}
package() {
2018-05-02 07:18:52 +08:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
2010-03-13 23:25:19 +08:00
}
2018-05-02 07:18:52 +08:00
# vim:set ts=2 sw=2 et: