wok view antimicro/receipt @ rev 24175

Up usbids (20211224)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 30 11:41:25 2021 +0000 (2021-12-30)
parents db6ba24c01e2
children 343c093ad221
line source
1 # SliTaz package receipt.
3 PACKAGE="antimicro"
4 VERSION="2.23"
5 CATEGORY="x-window"
6 SHORT_DESC="Map keyboard keys and mouse buttons to gamepad buttons."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/AntiMicro/antimicro"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/AntiMicro/$PACKAGE/archive/$VERSION/$TARBALL"
14 DEPENDS="libQtCore libQtGui libsdl2 libxcb xorg-libX11 xorg-libXau \
15 xorg-libXdmcp xorg-libXext xorg-libXi xorg-libXtst"
16 BUILD_DEPENDS="cmake libsdl2-dev qmake Qt4-dev xorg-libX11-dev xorg-libXtst-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir build
28 cd build
29 cmake .. \
30 -DCMAKE_INSTALL_PREFIX=/usr &&
31 make &&
32 make updateqm &&
33 make INSTALL_ROOT=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 }