Merge pull request #2056 from pullmoll/transmission
transmission: unbreak musl
This commit is contained in:
commit
2c76d7aeb0
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'transmission'
|
# Template file for 'transmission'
|
||||||
pkgname=transmission
|
pkgname=transmission
|
||||||
version=2.84
|
version=2.84
|
||||||
revision=10
|
revision=11
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp --without-systemd-daemon"
|
configure_args="--enable-nls --enable-cli --enable-daemon --enable-utp --without-systemd-daemon"
|
||||||
hostmakedepends="pkg-config intltool"
|
hostmakedepends="pkg-config intltool"
|
||||||
|
@ -24,6 +24,12 @@ if [ -z "$CROSS_BUILD" ]; then
|
||||||
subpackages+=" transmission-qt"
|
subpackages+=" transmission-qt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
# Add missing includes which happen as side-effects with glibc
|
||||||
|
sed -i libtransmission/transmission.h \
|
||||||
|
-e "/#include <inttypes.h>.*/i #include <sys/types.h> /* ssize_t */" \
|
||||||
|
-e "/#include <inttypes.h>.*/i #include <stdio.h> /* off_t */"
|
||||||
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
make CXXFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS}" ${makejobs}
|
make CXXFLAGS="${CXXFLAGS} -std=c++11" LDFLAGS="${LDFLAGS}" ${makejobs}
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
@ -77,6 +83,10 @@ transmission-gtk_package() {
|
||||||
vmove usr/share/icons/hicolor
|
vmove usr/share/icons/hicolor
|
||||||
vmove usr/share/applications
|
vmove usr/share/applications
|
||||||
vmove usr/share/pixmaps
|
vmove usr/share/pixmaps
|
||||||
|
# This install path seems to be used with musl libc
|
||||||
|
if [ -d ${DESTDIR}/usr/lib/locale ]; then
|
||||||
|
mv ${DESTDIR}/usr/lib/locale ${DESTDIR}/usr/share
|
||||||
|
fi
|
||||||
vmove usr/share/locale
|
vmove usr/share/locale
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue