# HG changeset patch # User Aleksej Bobylev # Date 1510930320 -7200 # Node ID 6b68542893683091af57961c0a429398aeb77667 # Parent fdfd62313081193f9c41a2635a5202ea19a6af4d Up (v2): serd, sord, uhd, umfpack, unbound diff -r fdfd62313081 -r 6b6854289368 serd-dev/receipt --- a/serd-dev/receipt Fri Nov 17 12:53:08 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="serd-dev" -VERSION="0.18.0" -CATEGORY="development" -SHORT_DESC="A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples, development files." -MAINTAINER="pascal.bellard@slitaz.org" -LICENSE="ISC" -WEB_SITE="http://drobilla.net/software/serd/" -WANTED="serd" - -DEPENDS="serd pkg-config" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/include $fs/usr - cp -a $install/usr/lib/pkgconfig $fs/usr/lib -} diff -r fdfd62313081 -r 6b6854289368 serd/receipt --- a/serd/receipt Fri Nov 17 12:53:08 2017 +0100 +++ b/serd/receipt Fri Nov 17 16:52:00 2017 +0200 @@ -1,31 +1,28 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="serd" VERSION="0.18.0" CATEGORY="development" -SHORT_DESC="A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples." +SHORT_DESC="A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="ISC" +WEB_SITE="http://drobilla.net/software/serd/" + TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://drobilla.net/software/serd/" WGET_URL="http://download.drobilla.net/$TARBALL" -DEPENDS="" -BUILD_DEPENDS="" +BUILD_DEPENDS="python" +SPLIT="serd-dev" -# Rules to configure and make the package. -compile_rules() -{ - cd $src +compile_rules() { ./waf configure --prefix=/usr && ./waf build && ./waf install --destdir=$DESTDIR } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib/lib* $fs/usr/lib +genpkg_rules() { + case $PACKAGE in + serd) copy @std;; + *-dev) copy @dev;; + esac } diff -r fdfd62313081 -r 6b6854289368 sord-dev/receipt --- a/sord-dev/receipt Fri Nov 17 12:53:08 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="sord-dev" -VERSION="0.8.0" -CATEGORY="development" -SHORT_DESC="A lightweight C library for storing RDF data in memory, development files." -MAINTAINER="pascal.bellard@slitaz.org" -LICENSE="ISC" -WEB_SITE="http://drobilla.net/software/sord/" -WANTED="sord" - -DEPENDS="sord pkg-config" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/include $fs/usr - cp -a $install/usr/lib/pkgconfig $fs/usr/lib -} diff -r fdfd62313081 -r 6b6854289368 sord/receipt --- a/sord/receipt Fri Nov 17 12:53:08 2017 +0100 +++ b/sord/receipt Fri Nov 17 16:52:00 2017 +0200 @@ -1,31 +1,34 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="sord" VERSION="0.8.0" CATEGORY="development" -SHORT_DESC="A lightweight C library for storing RDF data in memory." +SHORT_DESC="A lightweight C library for storing RDF data in memory" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="ISC" +WEB_SITE="http://drobilla.net/software/sord/" + TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://drobilla.net/software/sord/" WGET_URL="http://download.drobilla.net/$TARBALL" -DEPENDS="serd pcre" -BUILD_DEPENDS="pkg-config serd-dev pcre" +BUILD_DEPENDS="python serd-dev pcre-dev" +SPLIT="sord-dev" -# Rules to configure and make the package. -compile_rules() -{ - cd $src +compile_rules() { ./waf configure --prefix=/usr && ./waf build && ./waf install --destdir=$DESTDIR } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib/lib* $fs/usr/lib +genpkg_rules() { + case $PACKAGE in + sord) + copy @std + DEPENDS="pcre serd" + ;; + *-dev) + copy @dev + DEPENDS="sord serd-dev" + ;; + esac } diff -r fdfd62313081 -r 6b6854289368 uhd-dev/receipt --- a/uhd-dev/receipt Fri Nov 17 12:53:08 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="uhd-dev" -VERSION="release_003_009_003" -CATEGORY="development" -SHORT_DESC="The USRP(tm) Hardware Driver, development files." -MAINTAINER="pascal.bellard@slitaz.org" -LICENSE="GPL2" -WEB_SITE="https://github.com/EttusResearch/uhd" - -WANTED="uhd" -DEPENDS="uhd pkg-config cmake" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/cmake $fs/usr/lib - cp -a $install/usr/lib/pkgconfig $fs/usr/lib - cp -a $install/usr/include $fs/usr -} diff -r fdfd62313081 -r 6b6854289368 uhd/receipt --- a/uhd/receipt Fri Nov 17 12:53:08 2017 +0100 +++ b/uhd/receipt Fri Nov 17 16:52:00 2017 +0200 @@ -1,41 +1,49 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="uhd" -VERSION="release_003_009_003" +VERSION="3.10.2.0"; FANCY_VERSION="release_003_010_002_000" CATEGORY="network" -SHORT_DESC="The USRP(tm) Hardware Driver." +SHORT_DESC="The USRP(tm) Hardware Driver" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" +WEB_SITE="https://github.com/EttusResearch/uhd" + TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="https://github.com/EttusResearch/uhd" -WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" +WGET_URL="$WEB_SITE/archive/$FANCY_VERSION.tar.gz" -DEPENDS="libboost-date-time libboost-filesystem libboost-program-options \ -libboost-regex libboost-system libboost-unit-test-framework libboost-serialization \ -libboost-thread libboost-math-tr1 udev python" -BUILD_DEPENDS="wget cmake python python-mako libboost-dev libboost-date-time \ +BUILD_DEPENDS="cmake python python-mako libboost-dev libboost-date-time \ libboost-filesystem libboost-program-options libboost-regex \ libboost-system libboost-unit-test-framework libboost-serialization \ -libboost-thread libboost-math-tr1 libusb-dev udev-dev" +libboost-thread libboost-math-tr1 libusb-dev eudev-dev" +SPLIT="uhd-dev" -# Rules to configure and make the package. -compile_rules() -{ +compile_rules() { cd $src/host mkdir build cd build - cmake .. -DENABLE_MANUAL=OFF -DENABLE_DOXYGEN=OFF \ - -DENABLE_MAN_PAGES=OFF -DENABLE_B200=ON -DENABLE_USB=ON \ - -DCMAKE_INSTALL_PREFIX=/usr - make && make DESTDIR=$DESTDIR install + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_MANUAL=OFF \ + -DENABLE_DOXYGEN=OFF \ + -DENABLE_MAN_PAGES=OFF \ + -DENABLE_B200=ON \ + -DENABLE_USB=ON \ + .. && + make && make install } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/lib/uhd $fs/usr/lib - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/share $fs/usr +genpkg_rules() { + case $PACKAGE in + uhd) + copy @std + DEPENDS="libboost-chrono libboost-date-time libboost-filesystem \ + libboost-program-options libboost-regex libboost-serialization \ + libboost-system libboost-thread libboost-unit-test-framework \ + libusb ncurses ncurses-libform python libboost-math-tr1 eudev" + ;; + *-dev) + copy @dev + DEPENDS="uhd" + ;; + esac } diff -r fdfd62313081 -r 6b6854289368 umfpack-dev/receipt --- a/umfpack-dev/receipt Fri Nov 17 12:53:08 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="umfpack-dev" -VERSION="4.4.4" -CATEGORY="development" -SHORT_DESC="Multifrontal LU factorization." -MAINTAINER="pascal.bellard@slitaz.org" -LICENSE="GPL2" -WEB_SITE="http://faculty.cse.tamu.edu/davis/suitesparse.html" -WANTED="umfpack" - -DEPENDS="umfpack" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*a $fs/usr/lib - cp -a $install/usr/include $fs/usr -} diff -r fdfd62313081 -r 6b6854289368 umfpack/receipt --- a/umfpack/receipt Fri Nov 17 12:53:08 2017 +0100 +++ b/umfpack/receipt Fri Nov 17 16:52:00 2017 +0200 @@ -1,28 +1,26 @@ -# SliTaz package receipt. +# SliTaz package receipt v2. PACKAGE="umfpack" -SOURCE="SuiteSparse" VERSION="4.4.4" CATEGORY="development" -SHORT_DESC="Multifrontal LU factorization." +SHORT_DESC="Multifrontal LU factorization" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" -TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://faculty.cse.tamu.edu/davis/suitesparse.html" -WGET_URL="http://faculty.cse.tamu.edu/davis/$SOURCE/$TARBALL" -DEPENDS="blas lapack" +TARBALL="SuiteSparse-$VERSION.tar.gz" +WGET_URL="http://faculty.cse.tamu.edu/davis/SuiteSparse/$TARBALL" + BUILD_DEPENDS="blas lapack libgfortran" +SPLIT="umfpack-dev" -# Rules to configure and make the package. -compile_rules() -{ +compile_rules() { cat > dynlink.sh </dev/null \; + # ar -x $i; ar -crD $(basename $i) * + + ./configure \ --sysconfdir=/etc \ - --mandir=/usr/share/man \ + --disable-static \ $CONFIGURE_ARGS && make && - make DESTDIR=$DESTDIR install + make install } -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib $fs/var/lib/unbound - cp -a $install/etc $fs - cp -a $install/usr/lib/*.so* $fs/usr/lib - cp -a $install/usr/sbin $fs/usr +genpkg_rules() { + case $PACKAGE in + unbound) + copy @std + DEPENDS="expat libcrypto libssl" + CONFIG_FILES="/etc/unbound/" + ;; + *-dev) + copy @dev + DEPENDS="unbound openssl-dev" + ;; + esac } -# Post message when installing. -post_install() -{ - chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound - chroot "$1/" chown unbound /var/lib/unbound +post_install_unbound() { + chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound 2>/dev/null + chroot "$1/" chown unbound /var/lib/unbound chroot "$1/" unbound-anchor -a /var/lib/unbound/root.key : }