2021-01-17 19:15:45 +00:00
|
|
|
pkgver=3.19.2
|
|
|
|
pkgname=cmake
|
|
|
|
pkgrel=1
|
2021-09-11 08:24:20 +00:00
|
|
|
mkdeps="samu"
|
|
|
|
deps=""
|
2021-01-17 19:15:45 +00:00
|
|
|
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-09-11 08:24:20 +00:00
|
|
|
--mandir=/share/man \
|
|
|
|
--datadir=/share/$pkgname \
|
|
|
|
--docdir=/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
|
2021-09-30 14:01:41 +00:00
|
|
|
DESDIR=$pkgdir samu install
|
2021-01-17 19:15:45 +00:00
|
|
|
rm -r $pkgdir/usr/bin
|
|
|
|
rm -r $pkgdir/usr/share/info
|
|
|
|
rm -r $pkgdir/usr/include
|
|
|
|
}
|
|
|
|
package_dev() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-09-30 14:01:41 +00:00
|
|
|
DESTDIR=$pkgdir samu install
|
2021-01-17 19:15:45 +00:00
|
|
|
rm -r $pkgdir/usr/bin
|
|
|
|
rm -r $pkgdir/usr/share
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat COPYING
|
|
|
|
}
|