vp-build/srcpkgs/dhcpcd-qt/template

37 lines
1.1 KiB
Bash

# Template file for 'dhcpcd-qt'
pkgname=dhcpcd-qt
version=0.7.5
revision=4
patch_args="-Np1"
wrksrc="dhcpcd-ui-${version}"
build_style=gnu-configure
configure_args="--with-qt --without-dhcpcd-online --without-icons --with-notification"
hostmakedepends="pkg-config"
makedepends="qt5-devel"
depends="dhcpcd dhcpcd-icons desktop-file-utils"
short_desc="Qt system tray monitor for dhcpcd"
homepage="http://roy.marples.name/projects/dhcpcd-ui"
license="BSD"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-ui-$version.tar.bz2"
checksum=2dae2108605867aba78d98cc9e56e22d7b751eedc3f7e6d689d42d08e706aaf3
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel qt5-host-tools"
fi
post_configure() {
sed -i src/dhcpcd-qt/Makefile \
-e "s;^\(CC .*=\).*;\1 ${CC};" \
-e "s;^\(CXX .*=\).*;\1 ${CXX};" \
-e "s;^\(CFLAGS.*=.*\);& ${CFLAGS};" \
-e "s;^\(CXXFLAGS.*=.*\);& ${CXXFLAGS};" \
-e "s;^\(LFLAGS.*=.*\);& ${LDFLAGS};" \
-e "s;^\(LINK .*=\).*;\1 ${CXX};" \
-e "/STRIP/d"
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install
}