1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-25 21:57:06 +00:00
termux-packages/packages/libandroid-glob/build.sh
Leonid Pliushch 37375312b9
explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00

24 lines
901 B
Bash

TERMUX_PKG_HOMEPAGE=https://man7.org/linux/man-pages/man3/glob.3.html
TERMUX_PKG_DESCRIPTION="Shared library for the glob(3) system function"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.6
TERMUX_PKG_REVISION=2
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_BREAKS="libandroid-glob-dev"
TERMUX_PKG_REPLACES="libandroid-glob-dev"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
$CC $CFLAGS $CPPFLAGS -I$TERMUX_PKG_BUILDER_DIR -c $TERMUX_PKG_BUILDER_DIR/glob.c
$CC $LDFLAGS -shared glob.o -o libandroid-glob.so
$AR rcu libandroid-glob.a glob.o
cp -f $TERMUX_PKG_BUILDER_DIR/LICENSE $TERMUX_PKG_SRCDIR/
}
termux_step_make_install() {
install -Dm600 $TERMUX_PKG_BUILDER_DIR/glob.h $TERMUX_PREFIX/include/glob.h
install -Dm600 libandroid-glob.a $TERMUX_PREFIX/lib/libandroid-glob.a
install -Dm600 libandroid-glob.so $TERMUX_PREFIX/lib/libandroid-glob.so
}