file 5.45-1

This commit is contained in:
xhaa123 2024-09-07 23:18:11 +08:00
parent d6bc2ac98e
commit 9d747ef62b

35
file/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=file
pkgver=5.45
pkgrel=1
pkgdesc="File type identification utility"
arch=('x86_64')
url="https://www.darwinsys.com/file/"
license=('custom')
groups=('base' 'base-devel')
depends=('glibc' 'zlib' 'xz' 'bzip2' 'zstd')
options=('!emptydirs')
source=(https://astron.com/pub/${pkgname}/${pkgname}-${pkgver}.tar.gz)
sha256sums=(fc97f51029bb0e2c9f4e3bffefdaf678f0e039ee872b9de5c002a6d09c784d82)
build() {
cd ${pkgname}-${pkgver}
CFLAGS+=" -pthread"
${CONFIGURE}
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}