iglunix/pkgs/cmake/build.sh

49 lines
780 B
Bash
Raw Normal View History

2021-01-17 19:15:45 +00:00
pkgver=3.19.2
pkgname=cmake
pkgrel=1
bad=""
ext=""
fetch() {
curl "https://cmake.org/files/v3.19/cmake-3.19.2.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./bootstrap \
--prefix=/usr \
2021-01-31 11:09:14 +00:00
--mandir=/usr/share/man \
--datadir=/usr/share/$pkgname \
--docdir=/usr/share/doc/$pkgname \
2021-01-17 19:15:45 +00:00
--generator=Ninja \
--no-system-libs
samu
}
package() {
cd $pkgname-$pkgver
DESTDIR=$pkgdir samu install
}
package_doc() {
cd $pkgname-$pkgver
gmake install DESDIR=$pkgdir
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/share/info
rm -r $pkgdir/usr/include
}
package_dev() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/share
}
license() {
cd $pkgname-$pkgver
cat COPYING
}