aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-05-22 19:27:34 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-05-23 21:10:27 +0000
commit55e24c9b1411a7f40187df031f17dcde8b79d379 (patch)
treeca44b3924a0a1983fdf77b113a200c95e4495c16
parentd4b00a54637e0ef3564a5af44ac2378b90e9e24b (diff)
downloadaports-55e24c9b1411a7f40187df031f17dcde8b79d379.tar.gz
aports-55e24c9b1411a7f40187df031f17dcde8b79d379.tar.bz2
aports-55e24c9b1411a7f40187df031f17dcde8b79d379.tar.xz
community/ttyd: use CMAKE_BUILD_TYPE None
-rw-r--r--community/ttyd/APKBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/community/ttyd/APKBUILD b/community/ttyd/APKBUILD
index e565ebe0bd..223d1267cb 100644
--- a/community/ttyd/APKBUILD
+++ b/community/ttyd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ttyd
pkgver=1.6.0
-pkgrel=1
+pkgrel=2
pkgdesc="Share your terminal over the web"
url="https://tsl0922.github.io/ttyd"
arch="all"
@@ -16,23 +16,23 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/tsl0922/ttyd/archive/$pkgver
"
build() {
- mkdir -p build && cd build
- cmake .. \
- -DCMAKE_BUILD_TYPE=MinSizeRel \
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_VERBOSE_MAKEFILE=TRUE
- make
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE \
+ $CMAKE_CROSSOPTS .
+ make -C build
}
check() {
- cd "$builddir"/build
-
- ./ttyd --version
+ ./build/ttyd --version
}
package() {
- cd "$builddir"/build
- make DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
}
sha512sums="f713ebfc4b36784a9a66b2ed1c11386c6edb2acfe8030e60f589f0d4325a9c237001d47c0de9938fa3d4c8d58cd8e233ec7fe9760fcda6b9fa5a518a4f4b7c90 ttyd-1.6.0.tar.gz