summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules18
1 files changed, 9 insertions, 9 deletions
diff --git a/debian/rules b/debian/rules
index 898556d..b7087cd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ CFLAGS = -O2 -g
# LDFLAGS = -s LDFLAGS is not correctly defined in Makefile.in
prefix=/usr
package=xsane
-gimp-version=1.0
+gimp-version=1.2
build:
$(checkdir)
@@ -63,15 +63,13 @@ binary-arch: checkroot build
install -d debian/tmp-$(package)$(prefix)/lib/gimp/$(gimp-version)/plug-ins
ln -sf ../../../../bin/xsane \
debian/tmp-$(package)$(prefix)/lib/gimp/$(gimp-version)/plug-ins
- for file in xsane.AUTHOR xsane.CHANGES \
- xsane.IMAGE xsane.LANGUAGES xsane.ONLINEHELP \
- xsane.PROBLEMS xsane.TODO \
- xsane-*.lsm; \
+ for file in xsane.* ; \
do \
install -m 644 $${file} \
debian/tmp-$(package)$(prefix)/share/doc/$(package); \
gzip -9v debian/tmp-$(package)$(prefix)/share/doc/$(package)/$${file}; \
done
+ rm -f debian/tmp-$(package)$(prefix)/share/doc/$(package)/xsane.COPYING.gz
ln -s xsane.CHANGES.gz \
debian/tmp-$(package)$(prefix)/share/doc/$(package)/changelog.gz
ln -s ../sane \
@@ -80,12 +78,14 @@ binary-arch: checkroot build
install -m 0644 debian/copyright debian/tmp-$(package)$(prefix)/share/doc/$(package)/.
install -m 0644 debian/changelog \
debian/tmp-$(package)$(prefix)/share/doc/$(package)/changelog.Debian
+ rm -f debian/tmp-$(package)$(prefix)/share/doc/$(package)/sane/xsane/xsane-license.txt
+ ln -s ../../../../common-licenses/GPL debian/tmp-$(package)$(prefix)/share/doc/$(package)/sane/xsane/xsane-license.txt
gzip -9v \
debian/tmp-$(package)$(prefix)/share/doc/$(package)/changelog.Debian
install -d debian/tmp-$(package)/usr/lib/menu
install -m 0644 debian/menu.$(package) debian/tmp-$(package)/usr/lib/menu/$(package)
- dpkg-shlibdeps debian/tmp-$(package)$(prefix)/bin/*
- strip debian/tmp-$(package)$(prefix)/bin/*
+ dpkg-shlibdeps debian/tmp-$(package)$(prefix)/bin/xsane
+ strip debian/tmp-$(package)$(prefix)/bin/xsane
dpkg-gencontrol -isp -p$(package) -Pdebian/tmp-$(package)
dpkg --build debian/tmp-$(package) ..
@@ -113,7 +113,7 @@ xsane-gimp1.1-files:
mv debian/changelog.new debian/changelog
rm -f debian/rules.new
sed -e's/^package=xsane$$/package=xsane-gimp1.1/' \
- -e 's/^gimp-version=1.0$$/gimp-version=1.1/' debian/rules > \
+ -e 's/^gimp-version=1.2$$/gimp-version=1.1/' debian/rules > \
debian/rules.new
mv debian/rules.new debian/rules
chmod a+x debian/rules
@@ -127,7 +127,7 @@ xsane-files:
mv debian/changelog.new debian/changelog
rm -f debian/rules.new
sed -e's/^package=xsane-gimp1.1$$/package=xsane/' \
- -e 's/^gimp-version=1.1$$/gimp-version=1.0/' debian/rules > \
+ -e 's/^gimp-version=1.1$$/gimp-version=1.2/' debian/rules > \
debian/rules.new
mv debian/rules.new debian/rules
chmod a+x debian/rules