mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 18:42:14 +08:00
29 lines
859 B
Bash
29 lines
859 B
Bash
# $Id: PKGBUILD 65356 2010-01-28 04:43:43Z allan $
|
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
pkgname=file
|
|
pkgver=5.04
|
|
pkgrel=3
|
|
pkgdesc="File type identification utility"
|
|
arch=('i686' '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=('accade81ff1cc774904b47c72c8aeea0')
|
|
|
|
build() {
|
|
cd ${srcdir}/$pkgname-$pkgver
|
|
sed -i 's#\$(datadir)/misc#\$(datadir)#' configure
|
|
./configure --prefix=/usr --datadir=/usr/share/file
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install
|
|
install -dm755 ${pkgdir}/usr/share/misc
|
|
ln -s ../file/magic.mgc ${pkgdir}/usr/share/misc
|
|
|
|
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
|
|
}
|