wok-next diff mate-menus/receipt @ rev 20455

Update alsa
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Mar 01 20:46:32 2018 +0200 (2018-03-01)
parents afab00bd26c5
children 757d032c55c7
line diff
     1.1 --- a/mate-menus/receipt	Sat Oct 17 12:28:50 2015 -0300
     1.2 +++ b/mate-menus/receipt	Thu Mar 01 20:46:32 2018 +0200
     1.3 @@ -1,39 +1,48 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="mate-menus"
     1.8 -VERSION="1.9.0"
     1.9 -CATEGORY="utilities"
    1.10 -LICENSE="GPL3"
    1.11 -SHORT_DESC="Common package for MATE Desktop applications."
    1.12 +VERSION="1.18.0"
    1.13 +CATEGORY="x-window"
    1.14 +SHORT_DESC="Library for the Desktop Menu freedesktop.org specification"
    1.15  MAINTAINER="yuripourre@gmail.com"
    1.16 +LICENSE="GPL2"
    1.17 +WEB_SITE="https://github.com/mate-desktop/mate-menus"
    1.18 +
    1.19  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.20 -WEB_SITE="http://www.mate-desktop.org/"
    1.21 -WGET_URL="https://github.com/mate-desktop/$PACKAGE/archive/$TARBALL"
    1.22 -TAGS="MATE"
    1.23 -DEPENDS="glib python"
    1.24 -BUILD_DEPENDS="wget cacerts autoconf automake gobject-introspection-dev \
    1.25 -libtool itstool mate-common-dev python-dev"
    1.26 +WGET_URL="https://github.com/mate-desktop/mate-menus/archive/v$VERSION.tar.gz"
    1.27  
    1.28 -# Rules to configure and make the package.
    1.29 -compile_rules()
    1.30 -{
    1.31 -	./autogen.sh                   \
    1.32 -		--prefix=/usr          \
    1.33 -		--sysconfdir=/etc      \
    1.34 -		--localstatedir=/var   \
    1.35 -		--enable-python        \
    1.36 -		--disable-static       \
    1.37 +BUILD_DEPENDS="mate-common gobject-introspection-dev python-dev"
    1.38 +SPLIT="mate-menus-python mate-menus mate-menus-dev"
    1.39 +
    1.40 +compile_rules() {
    1.41 +	./autogen.sh \
    1.42 +		--sysconfdir=/etc \
    1.43 +		--localstatedir=/var \
    1.44 +		\
    1.45 +		--enable-python \
    1.46  		$CONFIGURE_ARGS &&
    1.47  	make &&
    1.48 -	make DESTDIR=$DESTDIR install
    1.49 +	make install
    1.50  }
    1.51  
    1.52 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.53 -genpkg_rules()
    1.54 -{
    1.55 -	mkdir -p $fs/usr/lib/python2.7/site-packages/
    1.56 -	cp -a $install/usr/share $fs/usr
    1.57 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.58 -	cp -a $install/usr/lib/python2.7/site-packages/*.so* $fs/usr/lib/python2.7/site-packages/
    1.59 -	cp -a $install/etc $fs
    1.60 +genpkg_rules() {
    1.61 +	case $PACKAGE in
    1.62 +		mate-menus-python)
    1.63 +			copy python*/*.so *.py
    1.64 +			DEPENDS="mate-menus python"
    1.65 +			CAT="python|Python bindings"
    1.66 +			;;
    1.67 +		mate-menus)
    1.68 +			copy @std @rm
    1.69 +			DEPENDS="glib libffi pcre util-linux-blkid util-linux-mount \
    1.70 +			util-linux-uuid zlib"
    1.71 +			;;
    1.72 +		*-dev)
    1.73 +			copy @dev
    1.74 +			DEPENDS="${SPLIT/$PACKAGE/} glib-dev libffi-dev pcre-dev \
    1.75 +			python-dev util-linux-blkid-dev util-linux-mount-dev \
    1.76 +			util-linux-uuid-dev zlib-dev"
    1.77 +			;;
    1.78 +	esac
    1.79 +	TAGS="MATE"
    1.80  }