-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
Copy pathtemplate
37 lines (33 loc) · 1.3 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
# Template file for 'Fritzing'
pkgname=Fritzing
version=0.9.3b
revision=1
build_style=qmake
hostmakedepends="qt5-qmake"
makedepends="qt5-devel qt5-serialport-devel qt5-svg-devel boost-devel libgit2-devel"
depends="qt5-plugin-sqlite"
short_desc="Software for electronics prototyping"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-2,GPL-3, CC-BY-SA-3.0"
homepage="http://fritzing.org"
distfiles="https://github.com/${pkgname}/${pkgname}-app/archive/${version}.tar.gz>fritzing-app-${version}.tar.gz
https://github.com/${pkgname}/${pkgname}-parts/archive/${version}.tar.gz>fritzing-parts-${version}.tar.gz"
checksum="2475a95aad2c1536eef3fdb72665c5c16590644b45bd110a0cde223c916625b8
c40a9a50df0af78905968792b2ce595896af1935633600d6136eca0cf9797fdb"
wrksrc="fritzing-app-${version}"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-serialport-devel qt5-svg-devel"
fi
post_extract() {
# looks for libgit2 and boost in the source tree
# make it use the system libraries
sed -i -e "s|\(LIBGIT2INCLUDE =\) ../libgit2/include|\1 ${XBPS_CROSS_BASE}/usr/include|" \
-e "s|\(LIBGIT2LIB = \)../libgit2/build|\1 ${XBPS_CROSS_BASE}/usr/lib|" \
phoenix.pro
sed -i -e "/error/d" \
-e "s/\(BOOSTINFO =\).*/\1/" \
pri/utils.pri
}
pre_build() {
mv ${XBPS_BUILDDIR}/fritzing-parts-$version/ $wrksrc/parts
}