-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
50 lines (46 loc) · 1.52 KB
/
template
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
46
47
48
49
50
# Template file for 'octoxbps'
pkgname=octoxbps
version=0.3.3
revision=1
build_style=qmake
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
makedepends="qt5-declarative-devel qtermwidget-devel"
depends="curl"
short_desc="Qt-based XBPS front-end"
maintainer="beefcurtains <beefcurtains@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://tintaescura.com/projects/octopi/"
changelog="https://raw.githubusercontent.com/aarnt/octoxbps/master/CHANGELOG"
distfiles="https://github.com/aarnt/octoxbps/archive/v${version}.tar.gz"
checksum=bf00fca7416b9ecad5e8c6e85d8e3215e8c4ef73c23a2b2c3cbe6773491ff4d5
post_configure() {
local qmake_args
if [ "$CROSS_BUILD" ]; then
qmake_args="-qtconf ${wrksrc}/qt.conf"
fi
cd ${wrksrc}/notifier && qmake-qt5 ${configure_args} \
QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_LINK_C=$CC \
QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXXFLAGS="${CXXFLAGS}" \
QMAKE_LFLAGS="${LDFLAGS}" \
${qmake_args}
cd ${wrksrc}/sudo && qmake-qt5 ${configure_args} \
QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_LINK_C=$CC \
QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXXFLAGS="${CXXFLAGS}" \
QMAKE_LFLAGS="${LDFLAGS}" \
${qmake_args}
}
do_build() {
for _dir in ${wrksrc} ${wrksrc}/notifier ${wrksrc}/sudo; do
cd $_dir && make ${makejobs} ${make_build_args} ${make_build_target} CC="$CC" CXX="$CXX" LINK="$CXX"
done
}
do_install() {
for _dir in ${wrksrc} ${wrksrc}/notifier ${wrksrc}/sudo; do
cd $_dir && make INSTALL_ROOT=${DESTDIR} install
done
}
post_install() {
vdoc "${FILESDIR}/README.voidlinux"
}