50 lines
905 B
Bash
50 lines
905 B
Bash
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() {
|
|
echo "================="
|
|
echo " DEPRECATED: "
|
|
echo " USE TOYBOX FILE "
|
|
echo "================="
|
|
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
|
|
}
|