[Pkg-javascript-commits] [node-sqlite3] 07/10: Simplify rules
László Böszörményi
gcs at moszumanska.debian.org
Sun Apr 24 08:52:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
gcs pushed a commit to branch master
in repository node-sqlite3.
commit fc50f07f95f6da530345f0b43dc64f5c81a57c79
Author: Laszlo Boszormenyi (GCS) <gcs at debian.org>
Date: Sun Apr 24 08:42:24 2016 +0000
Simplify rules
---
debian/rules | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)
diff --git a/debian/rules b/debian/rules
index 01c58e9..aec0a7f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,35 +13,22 @@ DSVER := $(shell dpkg-parsechangelog -SVersion | cut -d- -f1 | cut -d+ -f2)
TARDIR := node-sqlite3-$(UPVER)
TARNAME := node-sqlite3_$(UPVER)+$(DSVER).orig.tar
-
-%:
- dh $@
-
-override_dh_install:
- dh_install
- dh_buildinfo
- chrpath -d $(CURDIR)/debian/node-sqlite3/usr/lib/nodejs/sqlite3/lib/node_sqlite3.node
- chmod 644 $(CURDIR)/debian/node-sqlite3/usr/lib/nodejs/sqlite3/lib/node_sqlite3.node
+PKGDIR=$(CURDIR)/debian/node-sqlite3/
override_dh_auto_configure:
- node-gyp configure --sqlite=external
+ node-pre-gyp configure --sqlite=external --module_name=node_sqlite3
override_dh_auto_build:
- node-gyp build
+ node-pre-gyp build
override_dh_auto_test:
-override_dh_shlibdeps:
- dpkg-shlibdeps \
- -T$(CURDIR)/debian/node-sqlite3.substvars \
- $(CURDIR)/debian/node-sqlite3/usr/lib/nodejs/sqlite3/lib/node_sqlite3.node
+override_dh_fixperms:
+ dh_fixperms
+ chmod a-x $(PKGDIR)/usr/lib/nodejs/sqlite3/lib/binding/node-*/node_sqlite3.node
-override_dh_strip:
- strip \
- --remove-section=.comment \
- --remove-section=.note \
- --strip-unneeded \
- $(CURDIR)/debian/node-sqlite3/usr/lib/nodejs/sqlite3/lib/node_sqlite3.node
+%:
+ dh $@
get-orig-source:
mkdir -p ../tarballs
@@ -58,3 +45,6 @@ get-orig-source:
rm -rf $(TARDIR)/
gzip -9 $(TARNAME)
mv $(TARNAME).gz ../tarballs/
+
+.PHONY: override_dh_auto_configure override_dh_auto_build \
+ override_dh_fixperms override_dh_auto_test
--
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