1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/usr/bin/make -f
%:
dh $@ --with xul-ext
# Adapted from http://wiki.debian.org/SandroTosi/Svn_get-orig-source
PACKAGE = foxyproxy
SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
REPO_URL = https://svn.getfoxyproxy.org/basic_and_standard/gecko/tags
get-orig-source:
rm -rf get-orig-source $(TARBALL)
mkdir get-orig-source
svn export $(REPO_URL)/$(SRC_VERSION) \
get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
GZIP='--best --no-name' tar --exclude="*.svn" --exclude="debian" -czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
rm -rf get-orig-source
override_dh_auto_build:
cd src; ant build-foxyproxy-standard
mv targets/foxyproxy-standard*.xpi .
rmdir targets/
override_dh_auto_install:
install-xpi --remove-license-files foxyproxy-standard*.xpi
override_dh_auto_clean:
rm -f foxyproxy-standard*.xpi
rm -rf debian/foxyproxy*
rm -rf debian/xul-ext-foxyproxy-standard*
rm -f debian/files
|