iglunix/base/expat/build.sh

47 lines
825 B
Bash
Raw Normal View History

2021-01-17 19:15:45 +00:00
pkgver=2.2.10
pkgname=expat
bad=""
2021-09-11 08:24:20 +00:00
mkdeps="bmake"
deps=""
2021-01-17 19:15:45 +00:00
ext="dev"
2022-04-21 16:03:46 +00:00
auto_cross
2021-01-17 19:15:45 +00:00
fetch() {
2021-02-10 20:26:04 +00:00
pkgver_r=$(echo $pkgver | tr '.' '_')
2021-02-11 11:31:28 +00:00
curl -L https://github.com/libexpat/libexpat/releases/download/R_$pkgver_r/$pkgname-$pkgver.tar.xz -o $pkgname-$pkgver.tar.gz
2021-01-17 19:15:45 +00:00
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure \
2022-04-21 16:03:46 +00:00
--prefix=/usr \
--build=$HOST_TRIPLE \
--host=$TRIPLE
2021-01-17 19:15:45 +00:00
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm $pkgdir/usr/lib/*.a
rm $pkgdir/usr/lib/*.la
rm -r $pkgdir/usr/include
rm -r $pkgdir/usr/lib/pkgconfig
rm -r $pkgdir/usr/share
}
2021-01-31 11:09:14 +00:00
package_dev() {
2021-01-17 19:15:45 +00:00
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
2021-01-31 11:09:14 +00:00
rm -r $pkgdir/usr/share
rm $pkgdir/usr/lib/*.so
rm $pkgdir/usr/lib/*.so.*
2021-01-17 19:15:45 +00:00
}
license() {
cd $pkgname-$pkgver
2021-01-31 11:09:14 +00:00
cat COPYING
2021-01-17 19:15:45 +00:00
}