xplugd: update to 1.4.

This commit is contained in:
Duncaen 2020-07-09 19:09:00 +02:00
parent d4624862aa
commit 0fddb4ba88
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -1,6 +1,6 @@
# Template file for 'xplugd'
pkgname=xplugd
version=1.3
version=1.4
revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config"
@ -10,23 +10,9 @@ maintainer="Duncaen <duncaen@voidlinux.org>"
license="MIT"
homepage="https://github.com/troglobit/xplugd"
distfiles="https://github.com/troglobit/xplugd/archive/v${version}.tar.gz"
checksum=540345853aa02f7a6e2d39f3437cedcaa1367a9e3c318a4b4ba640a859aebc52
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libglob-devel";;
esac
checksum=7f84aeacd1fa0d317555e836d460e8f8a529fe57f308e831d426381b8e944e34
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -e '/include/s,glob.h,libglob/glob.h,g' \
-e '/GLOB_TILDE/s/glob(/g_glob(/g' \
-e 's/globfree(/g_globfree(/g' \
-i xplugd.c
export LIBS="$XBPS_CROSS_BASE/usr/lib/libglob.a"
;;
esac
./autogen.sh
}