rclone: Switch tarballs to signed (fixes #2382)
[termux-packages] / packages / mlocate / build.sh
CommitLineData
e7d13caa 1TERMUX_PKG_HOMEPAGE=https://pagure.io/mlocate
59f0d218 2TERMUX_PKG_DESCRIPTION="Tool to find files anywhere in the filesystem based on their name"
69e03c96
FF
3# If not linking to libandroid-support we segfault in
4# the libc mbsnrtowcs() function when using a wildcard
5# like in '*.deb'.
6TERMUX_PKG_DEPENDS="libandroid-support"
59f0d218 7TERMUX_PKG_VERSION=0.26
69e03c96 8TERMUX_PKG_REVISION=3
e7d13caa
FF
9TERMUX_PKG_SRCURL=https://releases.pagure.org/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz
10TERMUX_PKG_SHA256=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
59f0d218 11
7ce56385
FF
12termux_step_pre_configure() {
13 CPPFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
14}
59f0d218
FF
15
16termux_step_create_debscripts () {
aa605e89 17 echo "#!$TERMUX_PREFIX/bin/sh" > postinst
18 echo "mkdir -p $TERMUX_PREFIX/var/mlocate/" >> postinst
59f0d218
FF
19 echo "exit 0" >> postinst
20 chmod 0755 postinst
21}