-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
build.sh
45 lines (40 loc) · 1.39 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
TERMUX_PKG_HOMEPAGE=https://deadbeef.sourceforge.io/
TERMUX_PKG_DESCRIPTION="A modular cross-platform audio player"
TERMUX_PKG_LICENSE="ZLIB, GPL-2.0, LGPL-2.1, BSD 3-Clause, MIT"
TERMUX_PKG_LICENSE_FILE="COPYING"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.9.5
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/deadbeef/deadbeef-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=74c4478edccfee8a978d4adbeeb208f049bef63982f4df19ee208aaad8a6cd26
TERMUX_PKG_DEPENDS="atk, dbus, ffmpeg, gdk-pixbuf, glib, gtk3, harfbuzz, libblocksruntime, libc++, libcairo, libcurl, libdispatch, libflac, libiconv, libjansson, libmad, libogg, libsamplerate, libsndfile, libvorbis, libwavpack, libx11, libzip, mpg123, opusfile, pango, pulseaudio, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ax_cv_c_flags__msse2=no
--disable-ffap
--disable-gme
--disable-gtk2
--disable-sid
"
termux_step_pre_configure() {
autoreconf -fi
CPPFLAGS+=" -D_FILE_OFFSET_BITS=64"
LDFLAGS+=" -lm $($CC -print-libgcc-file-name)"
rm -rf intl
mkdir -p intl
cat > intl/Makefile.in <<-EOF
all:
install:
EOF
}
termux_step_post_configure() {
echo '!<arch>' >> intl/libintl.a
}
termux_step_post_make_install() {
cd $TERMUX_PKG_SRCDIR
local f
for f in $(find plugins -name COPYING); do
local d=$(dirname ${f})
install -Dm600 -T $TERMUX_PKG_SRCDIR/${f} \
$TERMUX_PREFIX/share/doc/$TERMUX_PKG_NAME/COPYING.${d//\//.}
done
}