wok annotate libgdiplus/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 9926332fcfee
children ac8ca9758df1
rev   line source
rcx@3219 1 # SliTaz package receipt.
rcx@3219 2
rcx@3219 3 PACKAGE="libgdiplus"
Hans-G?nter@23032 4 VERSION="6.0.4"
rcx@3219 5 CATEGORY="development"
Hans-G?nter@23032 6 SHORT_DESC="Mono library providing a GDI+ compatible API on non-Windows operating systems."
rcx@3219 7 MAINTAINER="rcx@zoominternet.net"
pascal@14714 8 LICENSE="MIT"
pascal@20669 9 WEB_SITE="https://www.mono-project.com/Libgdiplus"
pascal@14714 10
Hans-G?nter@23032 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23032 12 WGET_URL="https://github.com/mono/$PACKAGE/archive/$VERSION/$TARBALL"
Hans-G?nter@23032 13
Hans-G?nter@23032 14 DEPENDS="glib glibc-base cairo expat fontconfig freetype giflib jpeg
Hans-G?nter@23032 15 libexif libpng pixman tiff util-linux-uuid xorg-libICE
Hans-G?nter@23032 16 xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXrender
Hans-G?nter@23032 17 zlib"
Hans-G?nter@23034 18 BUILD_DEPENDS="autoconf automake bison cairo-dev expat-dev fontconfig-dev
Hans-G?nter@23035 19 freetype-dev gcc83 giflib-dev glib-dev jpeg-dev libexif-dev
Hans-G?nter@23035 20 libpng-dev libtool libxml2-dev m4 pixman-dev pkg-config tiff-dev
Hans-G?nter@23034 21 util-linux-uuid-dev xorg-dev zlib-dev"
rcx@3219 22
rcx@3219 23 # Build documentation at http://mono-project.com/Compiling_Mono
rcx@3219 24 # and http://mono-project.com/Release_Notes_Mono_2.4#Installing_Mono_2.4
rcx@3219 25
pascal@24055 26 current_version()
pascal@24055 27 {
pascal@24055 28 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 29 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 30 }
pascal@24055 31
rcx@3219 32 # Rules to configure and make the package.
rcx@3219 33 compile_rules()
rcx@3219 34 {
Hans-G?nter@23033 35 ./autogen.sh \
Hans-G?nter@23032 36 --prefix=/usr \
Hans-G?nter@23032 37 --infodir=/usr/share/info \
Hans-G?nter@23032 38 --mandir=/usr/share/man \
Hans-G?nter@23032 39 --sysconfdir=/etc \
Hans-G?nter@23032 40 --with-cairo=system \
Hans-G?nter@23032 41 $CONFIGURE_ARGS &&
rcx@3219 42 make &&
slaxemulator@12319 43 make DESTDIR=$DESTDIR install
rcx@3219 44 }
rcx@3219 45
rcx@3219 46 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3219 47 genpkg_rules()
rcx@3219 48 {
rcx@3219 49 mkdir -p $fs/usr/lib
Hans-G?nter@23032 50 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@23032 51 }