gmake: fix cross
This commit is contained in:
parent
4fe1e5a8a7
commit
07764545d1
1 changed files with 11 additions and 4 deletions
|
@ -4,6 +4,7 @@ pkgrel=1
|
||||||
deps="musl"
|
deps="musl"
|
||||||
bad="gmake"
|
bad="gmake"
|
||||||
ext="doc:dev"
|
ext="doc:dev"
|
||||||
|
auto_cross
|
||||||
|
|
||||||
fetch() {
|
fetch() {
|
||||||
curl "https://ftp.gnu.org/gnu/make/make-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
curl "https://ftp.gnu.org/gnu/make/make-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
||||||
|
@ -16,27 +17,29 @@ build() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr/bad/gmake \
|
--prefix=/usr/bad/gmake \
|
||||||
--program-prefix=g \
|
--program-prefix=g \
|
||||||
--disable-nls
|
--disable-nls \
|
||||||
|
--build=$HOST_TRIPLE \
|
||||||
|
--host=$TRIPLE
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
./make install DESTDIR=$pkgdir
|
make install DESTDIR=$pkgdir
|
||||||
rm -r $pkgdir/usr/bad/gmake/share
|
rm -r $pkgdir/usr/bad/gmake/share
|
||||||
rm -r $pkgdir/usr/bad/gmake/include
|
rm -r $pkgdir/usr/bad/gmake/include
|
||||||
}
|
}
|
||||||
|
|
||||||
package_doc() {
|
package_doc() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
./make install DESDIR=$pkgdir
|
make install DESDIR=$pkgdir
|
||||||
rm -r $pkgdir/usr/bad/gmake/bin
|
rm -r $pkgdir/usr/bad/gmake/bin
|
||||||
rm -r $pkgdir/usr/bad/gmake/share/info
|
rm -r $pkgdir/usr/bad/gmake/share/info
|
||||||
rm -r $pkgdir/usr/bad/gmake/include
|
rm -r $pkgdir/usr/bad/gmake/include
|
||||||
}
|
}
|
||||||
package_dev() {
|
package_dev() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
./make install DESTDIR=$pkgdir
|
make install DESTDIR=$pkgdir
|
||||||
rm -r $pkgdir/usr/bad/gmake/bin
|
rm -r $pkgdir/usr/bad/gmake/bin
|
||||||
rm -r $pkgdir/usr/bad/gmake/share
|
rm -r $pkgdir/usr/bad/gmake/share
|
||||||
}
|
}
|
||||||
|
@ -45,3 +48,7 @@ license() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
cat COPYING
|
cat COPYING
|
||||||
}
|
}
|
||||||
|
|
||||||
|
backup() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue