cd ${BUILD}
$SRC/configure
make dist
-cp libzipper-${VERSION}.tar.gz libzipper1_${VERSION}.orig.tar.gz
-tar xzvf libzipper1_${VERSION}.orig.tar.gz
+cp libzipper-${VERSION}.tar.gz libzipper_${VERSION}.orig.tar.gz
+tar xzvf libzipper_${VERSION}.orig.tar.gz
cp -a ${SRC}/debian libzipper-${VERSION}
-dpkg-source -b libzipper-${VERSION}/
-if [ ! -f ${BUILD}/libzipper1_${VERSION}*.dsc ]; then
- echo "ERROR: Source package not created."
- exit 1
-fi
-
-# Remove intermediate results.
-make distclean
-rm -rf libzipper-${VERSION}/
-
-# Now we have the source package, copy then build it
-tar xzvf libzipper1_*.orig.tar.gz
cd libzipper-${VERSION}
-tar xzvf ../libzipper1_*.debian.tar.gz
-dpkg-buildpackage -rfakeroot -uc -b
+dpkg-buildpackage -rfakeroot
-if ! lintian --color auto --fail-on-warnings -i ${BUILD}/libzipper1_1.0.1-1.dsc; then
+if ! lintian --color auto --fail-on-warnings -i ${BUILD}/libzipper_1.0.1-1.dsc; then
echo "Build failed"
exit 1;
-elif ! lintian --color auto --fail-on-warnings -i ${BUILD}/libzipper1_1.0.1-1_amd64.changes; then
+elif ! lintian --color auto --fail-on-warnings -i ${BUILD}/libzipper_1.0.1-1_amd64.changes; then
echo "Build failed"
exit 1;
else
echo ------------------------------------------
echo
echo "Debian source package:"
-echo ${BUILD}/libzipper1_*.orig.tar.gz
-echo ${BUILD}/libzipper1_*.debian.tar.gz
-echo ${BUILD}/libzipper1_*.dsc
+echo ${BUILD}/libzipper_*.orig.tar.gz
+echo ${BUILD}/libzipper_*.debian.tar.gz
+echo ${BUILD}/libzipper_*.dsc
echo "Debian binary packages:"
echo ${BUILD}/libzipper1_*.deb
echo ${BUILD}/libzipper-dev_*.deb
-Source: libzipper1
+Source: libzipper
Priority: optional
Maintainer: Michael McMaster <michael@codesrc.com>
Build-Depends: debhelper (>= 7.0.50~), autotools-dev, cdbs, pkg-config, zlib1g-dev, doxygen, texlive-font-utils, graphviz