diff options
author | Patrick Ohly <patrick.ohly@gmx.de> | 2007-10-17 21:08:24 +0000 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@gmx.de> | 2007-10-17 21:08:24 +0000 |
commit | 401b0caee36273125c136c603664af0b6f9f0420 (patch) | |
tree | cfc934a9031d280655e5a9c13ec52c73fd41c0ef /Makefile.am | |
parent | 48f6b01a2c16017d9bee9210640a3138c4bd4f30 (diff) |
added packaging via checkinstall as deb (working) and rpm (somehow not working)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@425 15ad00c4-1369-45f4-8270-35d70d36bdcd
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index eeee5689..81ac4a4d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,3 +33,36 @@ $(IPHONE_FILENAME) : all -e 's;^type = text/(x-)?vcard;type = addressbook;m;' \ syncevolution-iphone/usr/share/doc/syncevolution/*/spds/sources/addressbook/config.txt cd syncevolution-iphone && zip -r ../$(IPHONE_FILENAME) . + +TYPE_deb = -D +TYPE_rpm = -R +REQUIRES_deb = --requires="`dpkg-shlibdeps -O src/syncevolution | sed -e 's/[^=]*=//'`" +VERSION_deb = $(VERSION) +VERSION_rpm = `echo $(VERSION) | sed -e s/-/_/g` + +# When calling checkinstall we cannot install into /tmp +# because any file created there will be excluded: that makes +# sense, because "make install" might create temporary files +# there. The current directory might be in /tmp, so use $HOME. +deb rpm : all doc-pak + tmpdir=`mktemp -d $$HOME/syncevolution.XXXXXXXXXX` && \ + trap "rm -rf $$tmpdir" EXIT && \ + docdir="$(docdir)" && \ + if [ ! "$$docdir" ]; then docdir="$(datadir)/doc/$(PACKAGE)"; fi && \ + fakeroot checkinstall \ + $(TYPE_$@) \ + $(REQUIRES_$@) \ + --fstrans=yes \ + --pkgversion=$(VERSION_$@) \ + --pkgname=syncevolution$(patsubst %,-%,$(BINSUFFIX)) \ + --maintainer='Patrick Ohly <patrick.ohly@gmx.de>' \ + --pkgsource='http://sourceforge.net/project/showfiles.php?group_id=146288' \ + --pkgaltsource='http://www.estamos.de/projects/SyncML/' \ + --docdir=$$docdir $(MAKE) install + +doc-pak : README NEWS COPYING + mkdir $@ + cp $+ $@ + +description-pak : description + cp $< $@ |