Skip to content

Commit

Permalink
addpkg(main/libck): 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tqfx committed Jun 18, 2024
1 parent 422a233 commit 0e1180d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/libck/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TERMUX_PKG_HOMEPAGE=https://github.com/concurrencykit/ck
TERMUX_PKG_DESCRIPTION="A concurrency primitives, safe memory reclamation mechanisms C library"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.7.2"
TERMUX_PKG_SRCURL=https://github.com/concurrencykit/ck/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=568ebe0bc1988a23843fce6426602e555b7840bf6714edcdf0ed530214977f1b
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_BLACKLISTED_ARCHES="arm"

termux_step_configure() {
./configure \
--prefix=$TERMUX_PREFIX \
--platform=$TERMUX_ARCH
}
11 changes: 11 additions & 0 deletions packages/libck/configure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/configure
+++ b/configure
@@ -707,7 +707,7 @@ int main(void) {
EOF

$CC -o .1 .1.c
-COMPILER=`./.1 2> /dev/null`
+COMPILER=clang
r=$?
rm -f .1.c .1

0 comments on commit 0e1180d

Please sign in to comment.