core/file/PKGBUILD

35 lines
726 B
Bash

#
# Core Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
pkgname=file
pkgver=5.11
pkgrel=1
pkgdesc="File type identification utility"
arch=('x86_64')
license=('custom')
groups=('base')
url="http://www.darwinsys.com/file/"
depends=('glibc' 'zlib')
options=('!libtool')
source=("ftp://ftp.astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('16a407bd66d6c7a832f3a5c0d609c27b')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --datadir=/usr/share/file
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}