new: lfs/file-5.45

This commit is contained in:
2024-11-13 02:21:16 -05:00
parent 8ffcbd69cd
commit 04a4d04c37

26
lfs/file-5.45.PKGBUILD Normal file
View File

@@ -0,0 +1,26 @@
pkgname=file
pkgver=5.45
pkgdesc='File type identification utility'
license=('custom')
homepage='https://www.darwinsys.com/file/'
sources=("$pkgname-$pkgver.tar.gz")
urls=("https://astron.com/pub/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=("26b2a96d4e3a8938827a1e572afd527a")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr
make
}
src_check() {
make check
}
src_install() {
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}