42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'dhcpcd-qt'
|
|
pkgname=dhcpcd-qt
|
|
version=0.7.7
|
|
revision=1
|
|
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"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="http://roy.marples.name/projects/dhcpcd-ui"
|
|
distfiles="http://roy.marples.name/downloads/dhcpcd/dhcpcd-ui-${version}.tar.xz"
|
|
checksum=81d448f82c9aa88ff85e4bc3cead5e4c7f3ea08e57c713dff9996fb5ba2c42b0
|
|
nocross="https://api.travis-ci.org/v3/job/621373375/log.txt"
|
|
|
|
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"
|
|
}
|
|
|
|
pre_install() {
|
|
head -n 25 src/dhcpcd-qt/dhcpcd-about.cpp > LICENSE
|
|
}
|
|
|
|
do_install() {
|
|
make INSTALL_ROOT=${DESTDIR} install
|
|
vlicense LICENSE
|
|
}
|