Skip to content

Commit 3c36cc1

Browse files
new package: libei
1 parent 4a73827 commit 3c36cc1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

x11-packages/libei/build.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
TERMUX_PKG_HOMEPAGE=https://libinput.pages.freedesktop.org/libei/
2+
TERMUX_PKG_DESCRIPTION="Library for Emulated Input"
3+
TERMUX_PKG_LICENSE="MIT"
4+
TERMUX_PKG_MAINTAINER="@termux"
5+
TERMUX_PKG_VERSION="1.4.1"
6+
TERMUX_PKG_SRCURL="https://gitlab.freedesktop.org/libinput/libei/-/archive/$TERMUX_PKG_VERSION/libei-$TERMUX_PKG_VERSION.tar.gz"
7+
TERMUX_PKG_SHA256=d0e8f18eb3617fbcc3d860bb54a47e17709e94e8e7cb0ae01ae221c67f000872
8+
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
9+
-Dlibei=enabled
10+
-Dlibeis=enabled
11+
-Dliboeffis=disabled
12+
-Dtests=disabled
13+
"
14+
15+
termux_step_pre_configure() {
16+
export TERMUX_MESON_ENABLE_SOVERSION=1
17+
}
18+
19+
termux_step_post_massage() {
20+
# Do not forget to bump revision of reverse dependencies and rebuild them
21+
# after SOVERSION is changed.
22+
local _SOVERSION_GUARD_FILES="
23+
lib/libei.so.1
24+
lib/libeis.so.1
25+
"
26+
local f
27+
for f in ${_SOVERSION_GUARD_FILES}; do
28+
if [ ! -e "${f}" ]; then
29+
termux_error_exit "SOVERSION guard check failed."
30+
fi
31+
done
32+
}

0 commit comments

Comments
 (0)