wok annotate xtrkcad/receipt @ rev 25624

Add opendkim
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 16:45:57 2023 +0000 (12 months ago)
parents 095836df71b7
children
rev   line source
rcx@3913 1 # SliTaz package receipt.
rcx@3913 2
rcx@3913 3 PACKAGE="xtrkcad"
Hans-G?nter@22313 4 VERSION="5.1.2a"
rcx@3913 5 CATEGORY="games"
rcx@3913 6 SHORT_DESC="A CAD program for designing model railroad layouts."
rcx@3913 7 MAINTAINER="rcx@zoominternet.net"
pascal@15601 8 LICENSE="GPL2"
Hans-G?nter@22313 9 WEB_SITE="http://www.xtrkcad.org/"
Hans-G?nter@22313 10
pascal@15601 11 TARBALL="$PACKAGE-source-$VERSION.tar.gz"
Hans-G?nter@22313 12 WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL"
Hans-G?nter@22313 13 #WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
pascal@15601 14
Hans-G?nter@22313 15 DEPENDS="atk cairo expat fontconfig freetype glib glibc-base gtk+
Hans-G?nter@22313 16 libgio libgtkhtml libpng libxcb libxml2 menu-railroad pango pixman
Hans-G?nter@22313 17 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor
Hans-G?nter@22313 18 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes
Hans-G?nter@22313 19 xorg-libXinerama xorg-libXrender zlib"
Hans-G?nter@22313 20 BUILD_DEPENDS="cmake doxygen gettext gtk+-dev libgtkhtml-dev libxml2-dev
Hans-G?nter@22313 21 pkg-config xorg-kbproto xorg-libX11-dev xorg-libXau-dev
Hans-G?nter@22313 22 xorg-libXdmcp-dev xorg-renderproto xorg-xproto zlib-dev"
rcx@3913 23
pascal@24326 24 # What is the latest version available today?
pascal@24108 25 current_version()
pascal@24108 26 {
pascal@24108 27 wget -O - https://sourceforge.net/projects/xtrkcad-fork/files/ 2>/dev/null | \
pascal@25607 28 sed '/Development/d;/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24108 29 sed 's| |\n|g' | sed '/Version%/!d;s|%20| |g;s|.*sion ||;s|/.*||;q'
pascal@24108 30 }
pascal@24108 31
rcx@3913 32 # Rules to configure and make the package.
rcx@3913 33 compile_rules()
rcx@3913 34 {
pascal@12655 35 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 36 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pascal@12655 37
pascal@8974 38 XTRKCAD_STUFF=$stuff
rcx@3913 39
rcx@4037 40 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt &&
Hans-G?nter@22313 41
Hans-G?nter@22313 42 cmake . \
Hans-G?nter@22313 43 -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
Hans-G?nter@22313 44 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
Hans-G?nter@22313 45 -D CMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@22313 46 -D XTRKCAD_USE_GTK=ON \
Hans-G?nter@22313 47 -D XTRKCAD_USE_GTK_CAIRO=ON &&
rcx@3913 48 make PREFIX=/usr &&
pascal@15601 49 make DESTDIR=$DESTDIR install &&
Hans-G?nter@22313 50
pascal@15601 51 mkdir -p $DESTDIR/usr/share/pixmaps &&
pascal@15601 52 cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps &&
Hans-G?nter@22313 53
pascal@15601 54 mkdir -p $DESTDIR/usr/share/applications &&
pascal@15601 55 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications &&
pascal@15601 56 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/usr/share/applications/*.desktop
rcx@3913 57 }
rcx@3913 58
rcx@3913 59 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3913 60 genpkg_rules()
rcx@3913 61 {
rcx@3913 62 mkdir -p $fs/usr/share/$PACKAGE
rcx@3913 63
Hans-G?nter@22313 64 cp -f $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
Hans-G?nter@22313 65 cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
Hans-G?nter@22313 66 cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
Hans-G?nter@22313 67 cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
Hans-G?nter@22313 68 cp -a $install/usr/share/applications $fs/usr/share
Hans-G?nter@22313 69 cp -a $install/usr/share/pixmaps $fs/usr/share
Hans-G?nter@22313 70 cp -a $install/usr/bin $fs/usr
rcx@3913 71 }