# HG changeset patch # User Pascal Bellard # Date 1456505733 -3600 # Node ID a77b556923e9cc0c5b28f670339ae1ece1e60ade # Parent cd252d2e4a4d3470a953282912a41edba6c1b82c mmv, sqlite, unclutter: use EXTRA_SOURCE_FILES to track the sources files diff -r cd252d2e4a4d -r a77b556923e9 mmv/receipt --- a/mmv/receipt Thu Feb 25 17:26:21 2016 +0100 +++ b/mmv/receipt Fri Feb 26 17:55:33 2016 +0100 @@ -9,6 +9,7 @@ WEB_SITE="https://packages.debian.org/sid/mmv" TARBALL="${PACKAGE}_${VERSION%-*}.orig.tar.gz" WGET_URL="http://http.debian.net/debian/pool/main/m/mmv/$TARBALL" +EXTRA_SOURCE_FILES="${PACKAGE}_$VERSION.debian.tar.gz" DEPENDS="" BUILD_DEPENDS="" @@ -16,8 +17,9 @@ # Rules to configure and make the package. compile_rules() { - wget http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz - tar -xzf ${PACKAGE}_$VERSION.debian.tar.gz debian/patches/ + wget -O "$SOURCES_REPOSITORY/${PACKAGE}_$VERSION.debian.tar.gz" \ + http://http.debian.net/debian/pool/main/m/mmv/${PACKAGE}_$VERSION.debian.tar.gz + tar -xzf $SOURCES_REPOSITORY/${PACKAGE}_$VERSION.debian.tar.gz debian/patches/ cat debian/patches/series | while read file; do patch -p1 < debian/patches/$file done diff -r cd252d2e4a4d -r a77b556923e9 sqlite/receipt --- a/sqlite/receipt Thu Feb 25 17:26:21 2016 +0100 +++ b/sqlite/receipt Fri Feb 26 17:55:33 2016 +0100 @@ -10,6 +10,7 @@ TARBALL="$PACKAGE-src-${_realver}.zip" WEB_SITE="http://www.sqlite.org/" WGET_URL="http://www.sqlite.org/2015/$TARBALL" +EXTRA_SOURCE_FILES="mysql2sqlite.sh" HOST_ARCH="i486 arm" DEPENDS="libsqlite" @@ -18,6 +19,9 @@ # Rules to configure and make the package. compile_rules() { + [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] || + wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \ + https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" ./configure \ --prefix=/usr \ @@ -45,9 +49,11 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr + mkdir -p $fs/usr/bin cp -a $install/usr/bin $fs/usr + cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin + chmod +x $fs/usr/bin/mysql2sqlite.sh if [ -f $fs/usr/bin/lemon ]; then rm -f $fs/usr/bin/lemon fi diff -r cd252d2e4a4d -r a77b556923e9 unclutter/receipt --- a/unclutter/receipt Thu Feb 25 17:26:21 2016 +0100 +++ b/unclutter/receipt Fri Feb 26 17:55:33 2016 +0100 @@ -11,6 +11,7 @@ WGET_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8.orig.tar.gz" PATCH_URL="http://http.debian.net/debian/pool/main/u/unclutter/unclutter_8-20.debian.tar.gz" PATCH="$(basename $PATCH_URL)" +EXTRA_SOURCE_FILES="$PATCH" DEPENDS="xorg-libX11 libxcb xorg-libXau xorg-libXdmcp" BUILD_DEPENDS=""