mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:04:37 +08:00
33 lines
684 B
Bash
33 lines
684 B
Bash
pkgname=file
|
|
pkgver=5.22
|
|
pkgrel=1
|
|
pkgdesc="File type identification utility"
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
groups=('base')
|
|
url="http://www.darwinsys.com/file/"
|
|
depends=('glibc' 'zlib')
|
|
source=("ftp://ftp.astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz")
|
|
sha1sums=('20fa06592291555f2b478ea2fb70b53e9e8d1f7c')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr --datadir=/usr/share/file
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make 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"
|
|
}
|