36 lines
921 B
Bash
36 lines
921 B
Bash
# 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
|
|
}
|