wok annotate stella/receipt @ rev 24279
taziso: rework usbbootkey
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 10 14:18:26 2022 +0000 (2022-01-10) |
parents | 5ea0ce1cecc0 |
children | de9dcfaecbe8 |
rev | line source |
---|---|
slaxemulator@7268 | 1 # SliTaz package receipt. |
slaxemulator@7268 | 2 |
slaxemulator@7268 | 3 PACKAGE="stella" |
Hans-G?nter@23670 | 4 VERSION="6.1.1" |
slaxemulator@7268 | 5 CATEGORY="games" |
slaxemulator@7268 | 6 SHORT_DESC="A multi-platform Atari 2600 VCS emulator." |
slaxemulator@7268 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15582 | 8 LICENSE="GPL2" |
Hans-G?nter@23670 | 9 WEB_SITE="https://stella-emu.github.io/" |
Hans-G?nter@23670 | 10 |
Hans-G?nter@23670 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23670 | 12 WGET_URL="https://github.com/stella-emu/$PACKAGE/archive/$VERSION.tar.gz" |
pascal@13041 | 13 TAGS="emulator atari" |
slaxemulator@7268 | 14 |
Hans-G?nter@23670 | 15 DEPENDS="gcc83-lib-base libpng libsdl2" |
Hans-G?nter@23670 | 16 BUILD_DEPENDS="gcc83 libpng-dev libsdl2-dev zlib-dev" |
pascal@15582 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
slaxemulator@7268 | 24 # Rules to configure and make the package. |
slaxemulator@7268 | 25 compile_rules() |
slaxemulator@7268 | 26 { |
Hans-G?nter@23672 | 27 export CC=gcc-83 |
Hans-G?nter@23672 | 28 export CXX=g++-83 |
Hans-G?nter@23672 | 29 |
Hans-G?nter@23670 | 30 ./configure \ |
slaxemulator@7268 | 31 --prefix=/usr && |
pascal@24114 | 32 make -j 4 && |
Hans-G?nter@23670 | 33 make DESTDIR=$DESTDIR install |
slaxemulator@7268 | 34 } |
slaxemulator@7268 | 35 |
slaxemulator@7268 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7268 | 37 genpkg_rules() |
slaxemulator@7268 | 38 { |
Hans-G?nter@23670 | 39 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@23670 | 40 mkdir -p $fs/usr/share/applications |
Hans-G?nter@23670 | 41 |
Hans-G?nter@23670 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23670 | 43 cp -a $install/usr/share/icons/hicolor/48x48/apps/stella.png \ |
Hans-G?nter@23670 | 44 $fs/usr/share/pixmaps |
Hans-G?nter@23670 | 45 sed -i 's|Icon=stella.png|Icon=stella|' \ |
Hans-G?nter@23670 | 46 $install/usr/share/applications/stella.desktop |
slaxemulator@7268 | 47 } |