2022-04-23 15:53:51 +00:00
|
|
|
pkgver=3.23.1
|
2021-01-17 19:15:45 +00:00
|
|
|
pkgname=cmake
|
|
|
|
pkgrel=1
|
2022-04-23 15:53:51 +00:00
|
|
|
mkdeps="samurai"
|
2021-09-11 08:24:20 +00:00
|
|
|
deps=""
|
2021-01-17 19:15:45 +00:00
|
|
|
bad=""
|
|
|
|
ext=""
|
|
|
|
|
|
|
|
fetch() {
|
2022-04-23 15:53:51 +00:00
|
|
|
curl "https://cmake.org/files/v3.23/cmake-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
|
2021-01-17 19:15:45 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2022-04-23 15:53:51 +00:00
|
|
|
if [ -z "$WITH_CROSS" ]; then
|
|
|
|
./bootstrap \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/share/man \
|
|
|
|
--datadir=/share/$pkgname \
|
|
|
|
--docdir=/share/doc/$pkgname \
|
|
|
|
--generator=Ninja \
|
|
|
|
--no-system-libs
|
|
|
|
else
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake -G Ninja .. \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_SYSTEM_NAME=Linux \
|
|
|
|
-DCMAKE_SYSROOT=$WITH_CROSS_DIR \
|
|
|
|
-DCMAKE_C_COMPILER_TARGET=$TRIPLE \
|
|
|
|
-DCMAKE_CXX_COMPILER_TARGET=$TRIPLE \
|
|
|
|
-DCMAKE_ASM_COMPILER_TARGET=$TRIPLE \
|
|
|
|
-DHAVE_POLL_FINE_EXITCODE=OFF \
|
|
|
|
-DHAVE_POLL_FINE_EXITCODE__TRYRUN_OUTPUT=OFF \
|
|
|
|
-DCMAKE_PREFIX_PATH=$WITH_CROSS_DIR \
|
|
|
|
-DBUILD_CursesDialog=OFF
|
|
|
|
fi
|
2021-01-17 19:15:45 +00:00
|
|
|
|
|
|
|
samu
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2022-04-23 15:53:51 +00:00
|
|
|
if [ ! -z "$WITH_CROSS" ]; then
|
|
|
|
cd build
|
|
|
|
fi
|
2021-01-17 19:15:45 +00:00
|
|
|
DESTDIR=$pkgdir samu install
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-04-23 15:53:51 +00:00
|
|
|
backup() {
|
|
|
|
return
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
2022-04-23 15:53:51 +00:00
|
|
|
cat Copyright.txt
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|