2021-01-27 11:19:03 +00:00
|
|
|
pkgname=file
|
|
|
|
pkgver=5.39
|
|
|
|
ext="dev:doc"
|
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl "ftp://ftp.astron.com/pub/file/file-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2021-07-31 11:31:15 +00:00
|
|
|
echo "================="
|
|
|
|
echo " DEPRECATED: "
|
|
|
|
echo " USE TOYBOX FILE "
|
|
|
|
echo "================="
|
2021-01-27 11:19:03 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--build=x86_64-unknown-linux-musl \
|
|
|
|
--host=x86_64-unknown-linux-musl
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install DESTDIR=$pkgdir
|
|
|
|
rm $pkgdir/usr/lib/*.la
|
|
|
|
rm -r $pkgdir/usr/include
|
|
|
|
rm -r $pkgdir/usr/share/man
|
|
|
|
rm -r $pkgdir/usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
package_dev() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install DESTDIR=$pkgdir
|
|
|
|
}
|
|
|
|
|
|
|
|
package_doc() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make install DESTDIR=$pkgdir
|
|
|
|
rm -r $pkgdir/usr/lib
|
|
|
|
rm -r $pkgdir/usr/bin
|
|
|
|
rm -r $pkgdir/usr/include
|
|
|
|
rm -r $pkgdir/usr/share/misc
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat COPYING
|
|
|
|
}
|