wok-6.x view fritzing/receipt @ rev 24313
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 21 10:59:24 2022 +0000 (2022-01-21) |
parents | abe6b9e04ee5 |
children | ad9008f821da |
line source
1 # SliTaz package receipt.
3 PACKAGE="fritzing"
4 VERSION="0.9.3b"
5 CATEGORY="development"
6 SHORT_DESC="Electronic Design Automation software; from prototype to product."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://fritzing.org"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/fritzing-app/archive/$VERSION.tar.gz"
14 DEPENDS="libboost-graph libQtCore libQtXml quazip"
15 BUILD_DEPENDS="libboost-dev libboost-graph-dev qmake Qt4-dev libQtNetwork \
16 quazip-dev"
17 HOST_ARCH="i486"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 qmake &&
29 make -j 1 &&
30 make INSTALL_ROOT=$install install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin $fs/usr/share
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/${PACKAGE} $fs/usr/share
39 cp -a $install/usr/share/icons $fs/usr/share/pixmaps
40 }