wok-next diff gupnp/receipt @ rev 20424
linux-dev: move creation to compile_rules(), keep genpkg_rules() for copying/splitting only
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 12 17:02:57 2018 +0200 (2018-01-12) |
parents | cb18a67a7ff6 |
children | 0ec6086e21d6 |
line diff
1.1 --- a/gupnp/receipt Tue Mar 10 08:20:59 2015 +0100 1.2 +++ b/gupnp/receipt Fri Jan 12 17:02:57 2018 +0200 1.3 @@ -1,32 +1,35 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="gupnp" 1.8 -VERSION="0.20.10" 1.9 +VERSION="1.0.2" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Framework for creating UPnP devices and control points." 1.12 +SHORT_DESC="Framework for creating UPnP devices and control points" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="LGPL2" 1.15 +WEB_SITE="https://wiki.gnome.org/Projects/GUPnP" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.18 -WEB_SITE="https://wiki.gnome.org/action/show/Projects/GUPnP" 1.19 -WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL" 1.20 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" 1.21 1.22 -DEPENDS="libsoup util-linux-uuid gssdp" 1.23 -BUILD_DEPENDS="wget libsoup-dev util-linux-uuid-dev gssdp-dev sqlite-dev" 1.24 +BUILD_DEPENDS="util-linux-uuid-dev glib-dev gssdp-dev libsoup-dev libxml2-dev \ 1.25 +gobject-introspection-dev gtk-doc vala" 1.26 +SPLIT="gupnp-dev" 1.27 1.28 -# Rules to configure and make the package. 1.29 -compile_rules() 1.30 -{ 1.31 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.32 - --mandir=/usr/share/man \ 1.33 - $CONFIGURE_ARGS && 1.34 - make && 1.35 - make DESTDIR=$DESTDIR install 1.36 +compile_rules() { 1.37 + ./configure $CONFIGURE_ARGS && make && make install 1.38 } 1.39 1.40 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.41 -genpkg_rules() 1.42 -{ 1.43 - mkdir -p $fs/usr/lib 1.44 - cp -a $install/usr/bin $fs/usr 1.45 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.46 +genpkg_rules() { 1.47 + case $PACKAGE in 1.48 + gupnp) 1.49 + copy @std 1.50 + DEPENDS="glib gssdp libsoup libxml2 util-linux-uuid" 1.51 + ;; 1.52 + *-dev) 1.53 + copy @dev 1.54 + DEPENDS="gupnp glib-dev gssdp-dev libffi-dev libsoup-dev \ 1.55 + libxml2-dev pcre-dev sqlite3-dev util-linux-blkid-dev \ 1.56 + util-linux-mount-dev util-linux-uuid-dev xz-dev zlib-dev" 1.57 + ;; 1.58 + esac 1.59 }