iglunix/base/expat/build.sh
2022-04-21 16:04:56 +00:00

36 lines
543 B
Bash

pkgver=2.2.10
pkgname=expat
bad=""
mkdeps="bmake"
deps=""
ext="dev"
auto_cross
fetch() {
pkgver_r=$(echo $pkgver | tr '.' '_')
curl -L https://github.com/libexpat/libexpat/releases/download/R_$pkgver_r/$pkgname-$pkgver.tar.xz -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$HOST_TRIPLE \
--host=$TRIPLE
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat COPYING
}
backup() {
return
}