[Pkg-javascript-commits] [node-sqlite3] 14/20: Just exclude the sqlite3 tarball
Jérémy Lal
kapouer at alioth.debian.org
Wed Sep 4 12:34:11 UTC 2013
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-sqlite3.
commit eb18fec33942763537245cd5e790003b4e1bd2c0
Author: Jérémy Lal <kapouer at melix.org>
Date: Wed Sep 4 13:48:19 2013 +0200
Just exclude the sqlite3 tarball
---
debian/rules | 34 +++++++++++++++++++++-------------
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/debian/rules b/debian/rules
index 1c53fdb..2a67f7c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,28 +9,36 @@ UPVER := $(shell dpkg-parsechangelog -SVersion | cut -d- -f1 | cut -d+ -f1)
endif
TARDIR := node-sqlite3-$(UPVER)
-TARNAME := node-sqlite3_$(UPVER)+ds1.orig.tar
+TARNAME := node-sqlite3_$(UPVER)+ds2.orig.tar
%:
dh $@
+override_dh_install:
+ dh_install
+ dh_buildinfo
+ chmod 644 $(CURDIR)/debian/node-srs/usr/lib/nodejs/sqlite3/sqlite3_bindings.node
+
override_dh_auto_configure:
- ./configure \
- --prefix=/usr \
- --with-sqlite3=/usr \
- --destdir=$(CURDIR)/debian/node-sqlite3
+ node-gyp configure
+
+override_dh_auto_build:
+ node-gyp build
override_dh_auto_test:
- # nothing
-override_dh_install:
- dh_install
- dh_buildinfo
+override_dh_shlibdeps:
+ dpkg-shlibdeps \
+ -T$(CURDIR)/debian/node-srs.substvars \
+ $(CURDIR)/debian/node-srs/usr/lib/nodejs/srs/_srs.node
-override_dh_auto_clean:
- -dh_auto_clean
- rm -rf build/ lib/sqlite3_bindings.node .lock-wscript
+override_dh_strip:
+ strip \
+ --remove-section=.comment \
+ --remove-section=.note \
+ --strip-unneeded \
+ $(CURDIR)/debian/node-srs/usr/lib/nodejs/srs/_srs.node
get-orig-source:
mkdir -p ../tarballs
@@ -42,7 +50,7 @@ get-orig-source:
--rename
tar xvf ../tarballs/node-sqlite3_$(UPVER).orig.tar.gz
@echo Repackaging
- rm -rf $(TARDIR)/deps
+ rm -rf $(TARDIR)/deps/sqlite-*.tar.gz
tar cf $(TARNAME) $(TARDIR)/
rm -rf $(TARDIR)/
gzip -9 $(TARNAME)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-sqlite3.git
More information about the Pkg-javascript-commits
mailing list