Commit 20985aac authored by Xuetian Weng's avatar Xuetian Weng

update file

parent ff662ef3
pkgname=file
pkgver=5.33
pkgrel=1
pkgdesc="File type identification utility"
pkgrel=2
pkgdesc='File type identification utility'
arch=('x86_64')
license=('custom')
groups=('base')
url="http://www.darwinsys.com/file/"
groups=('base' 'base-devel')
url='https://www.darwinsys.com/file/'
depends=('glibc' 'zlib')
source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz")
sha1sums=('31a67e4dc0a3d7a8d1b850429c3f625314700240')
source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz"{,.asc})
validpgpkeys=('BE04995BA8F90ED0C0C176C471112AB16CB33B3A') # Christos Zoulas
md5sums=('bbe6db96e3a9ca9554dce647390540ef'
'SKIP')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
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
:
}
./configure --prefix=/usr --datadir=/usr/share/file
make
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr --datadir=/usr/share/file --enable-fsect-man5
make
}
check() {
......@@ -23,10 +37,9 @@ check() {
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
rmdir -v "$pkgdir/usr/share/man/man5"
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment