Skip to content

Commit aa4dc85

Browse files
committed
new package: helvum
1 parent 07e8b18 commit aa4dc85

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

tur-on-device/helvum/build.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
TERMUX_PKG_HOMEPAGE=https://gitlab.freedesktop.org/pipewire/helvum
2+
TERMUX_PKG_DESCRIPTION="A GTK patchbay for pipewire. "
3+
TERMUX_PKG_LICENSE="GPL-3.0"
4+
TERMUX_PKG_MAINTAINER="@termux"
5+
TERMUX_PKG_VERSION="0.0.1"
6+
TERMUX_PKG_SRCURL=git+https://gitlab.freedesktop.org/pipewire/helvum/
7+
TERMUX_PKG_GIT_BRANCH="main"
8+
# TERMUX_PKG_VERSION="0.5.1"
9+
# TERMUX_PKG_SRCURL="https://gitlab.freedesktop.org/pipewire/helvum/-/archive/${TERMUX_PKG_VERSION}/helvum-${TERMUX_PKG_VERSION}.tar.bz2"
10+
# TERMUX_PKG_SHA256=d4f5cc0c3a70a91edfc816f12a10426dadd9ca74ea82662e2df5e6c4eb31d8ca
11+
TERMUX_PKG_DEPENDS="gdk-pixbuf, glib, graphene, gtk4, hicolor-icon-theme, libadwaita, libcairo, pipewire, pango"
12+
TERMUX_PKG_BUILD_DEPENDS="appstream-glib"
13+
# TERMUX_PKG_AUTO_UPDATE=true
14+
15+
termux_step_pre_configure() {
16+
if [ "${TERMUX_ON_DEVICE_BUILD}" = false ]; then
17+
termux_error_exit "This package doesn't support cross-compiling."
18+
fi
19+
}
20+
21+
termux_step_configure() {
22+
termux_setup_meson
23+
termux_setup_rust
24+
25+
TERMUX_MESON_CROSSFILE=$TERMUX_PKG_TMPDIR/meson-crossfile-$TERMUX_ARCH.txt
26+
sed -i "s/cmake = 'cmake'/cmake = 'cmake'\nrust = 'rustc'/" "$TERMUX_MESON_CROSSFILE"
27+
28+
local _meson_buildtype="minsize"
29+
local _meson_stripflag="--strip"
30+
if [ "$TERMUX_DEBUG_BUILD" = "true" ]; then
31+
_meson_buildtype="debug"
32+
_meson_stripflag=
33+
fi
34+
35+
CC=gcc CXX=g++ CFLAGS= CXXFLAGS= CPPFLAGS= LDFLAGS= $TERMUX_MESON \
36+
setup \
37+
$TERMUX_PKG_SRCDIR \
38+
$TERMUX_PKG_BUILDDIR \
39+
--$(test "${TERMUX_PKG_MESON_NATIVE}" = "true" && echo "native-file" || echo "cross-file") $TERMUX_MESON_CROSSFILE \
40+
--prefix $TERMUX_PREFIX \
41+
--libdir lib \
42+
--buildtype ${_meson_buildtype} \
43+
${_meson_stripflag} \
44+
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS \
45+
|| (termux_step_configure_meson_failure_hook && false)
46+
}

0 commit comments

Comments
 (0)