mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 03:36:58 -04:00
switch to dh for debian packaging
This commit is contained in:
parent
cfda3b8ac6
commit
83e198260b
2 changed files with 53 additions and 98 deletions
|
@ -2,22 +2,22 @@
|
||||||
|
|
||||||
export DH_VERBOSE = 1
|
export DH_VERBOSE = 1
|
||||||
|
|
||||||
GPKG_EXPORT_BUILDFLAGS = 1
|
DPKG_EXPORT_BUILDFLAGS = 1
|
||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
export DEB_BUILD_MAINT_PTIONS = hardening=+all
|
export DEB_BUILD_MAINT_PTIONS = hardening=+all
|
||||||
export QT_SELECT = qt5
|
export QT_SELECT = qt5
|
||||||
|
|
||||||
include /usr/share/dpkg/default.mk
|
MY_BUILDDIR = _build
|
||||||
|
|
||||||
MY_BUILD_DIR = _build
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --buildsystem=qmake --builddirectory=$(MY_BUILD_DIR)
|
dh $@ --buildsystem=qmake --builddirectory=$(MY_BUILDDIR)
|
||||||
|
|
||||||
# Override dh_auto_configure in order to call qmake on the parent dir.
|
# Override dh_auto_configure in order to call qmake on the parent dir.
|
||||||
# We call mkdir here because of #800738.
|
# We call mkdir here because of #800738.
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
@mkdir -p $(MY_BUILDDIR)
|
@mkdir -p $(MY_BUILDDIR)
|
||||||
dh_auto_configure -- ..
|
dh_auto_configure -- ../src
|
||||||
|
|
||||||
# Upstream ships with a 'history' directory containing ancient code.
|
# Upstream ships with a 'history' directory containing ancient code.
|
||||||
# We are not interested in installing this.
|
# We are not interested in installing this.
|
||||||
|
@ -25,57 +25,3 @@ override_dh_installchangelogs:
|
||||||
dh_installchangelogs --exclude=history
|
dh_installchangelogs --exclude=history
|
||||||
|
|
||||||
|
|
||||||
# configure: configure-stamp
|
|
||||||
# configure-stamp:
|
|
||||||
# dh_testdir
|
|
||||||
# cd src && qmake "CONFIG-=debug" "CONFIG+=release" "CONFIG+=rs_autologin" "CONFIG+=retroshare_plugins" PREFIX=/usr LIB_DIR=/usr/lib RetroShare.pro
|
|
||||||
# touch $@
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# build: build-arch build-indep
|
|
||||||
#
|
|
||||||
# build-stamp: configure-stamp
|
|
||||||
# dh_testdir
|
|
||||||
# cd src && $(MAKE)
|
|
||||||
# touch $@
|
|
||||||
#
|
|
||||||
# build-indep: build-stamp
|
|
||||||
#
|
|
||||||
# build-arch: build-stamp
|
|
||||||
#
|
|
||||||
# clean:
|
|
||||||
# dh_testdir
|
|
||||||
# dh_testroot
|
|
||||||
# rm -f configure-stamp build-stamp
|
|
||||||
# # Add here commands to clean up after the build process.
|
|
||||||
# [ ! -f src/Makefile ] || (cd src && $(MAKE) distclean)
|
|
||||||
# dh_prep
|
|
||||||
# dh_clean
|
|
||||||
#
|
|
||||||
# install: build
|
|
||||||
# dh_testdir
|
|
||||||
# dh_testroot
|
|
||||||
# dh_prep
|
|
||||||
# dh_clean
|
|
||||||
# cd src && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
|
|
||||||
#
|
|
||||||
# # Build architecture-independent files here.
|
|
||||||
# binary-indep: build install
|
|
||||||
#
|
|
||||||
# # Build architecture-dependent files here.
|
|
||||||
# binary-arch: build install
|
|
||||||
# dh_testdir
|
|
||||||
# dh_testroot
|
|
||||||
# dh_install --list-missing
|
|
||||||
# dh_link
|
|
||||||
# dh_strip
|
|
||||||
# dh_compress
|
|
||||||
# dh_fixperms
|
|
||||||
# dh_installdeb
|
|
||||||
# dh_shlibdeps
|
|
||||||
# dh_gencontrol
|
|
||||||
# dh_md5sums
|
|
||||||
# dh_builddeb
|
|
||||||
#
|
|
||||||
# binary: binary-indep binary-arch
|
|
||||||
# .PHONY: build clean binary-indep binary-arch binary install configure
|
|
||||||
|
|
|
@ -48,6 +48,10 @@ while [ ${#} -gt 0 ]; do
|
||||||
gpgkey=${1}
|
gpgkey=${1}
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
"-nodl")
|
||||||
|
nodl=yes
|
||||||
|
shift
|
||||||
|
;;
|
||||||
"-makeorig")
|
"-makeorig")
|
||||||
makeorig=yes
|
makeorig=yes
|
||||||
shift
|
shift
|
||||||
|
@ -93,13 +97,13 @@ read tmp
|
||||||
echo Extracting base archive...
|
echo Extracting base archive...
|
||||||
|
|
||||||
if ! test "${makeorig}" = "yes" ; then
|
if ! test "${makeorig}" = "yes" ; then
|
||||||
if ! test -f retroshare_${version}.orig.tar.gz; then
|
if ! test -f retroshare_${version_number}.orig.tar.gz; then
|
||||||
echo Error: no orig file found. Please call with -makeorig option first
|
echo Error: no orig file found. Please call with -makeorig option first
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! test "${nodl}" = "yes"; then
|
||||||
mkdir -p ${workdir}/src
|
mkdir -p ${workdir}/src
|
||||||
echo Checking out latest snapshot...
|
echo Checking out latest snapshot...
|
||||||
cd ${workdir}/src
|
cd ${workdir}/src
|
||||||
|
@ -118,14 +122,10 @@ cp -r debian ${workdir}/debian
|
||||||
cp ${workdir}/src/retroshare-gui/src/gui/chat/PopupChatDialog.ui ${workdir}/src/plugins/VOIP/gui/PopupChatDialog.ui
|
cp ${workdir}/src/retroshare-gui/src/gui/chat/PopupChatDialog.ui ${workdir}/src/plugins/VOIP/gui/PopupChatDialog.ui
|
||||||
|
|
||||||
# remove unised qml code, only needed on Android
|
# remove unised qml code, only needed on Android
|
||||||
|
|
||||||
rm -rf ${workdir}/src/retroshare-qml-app/
|
rm -rf ${workdir}/src/retroshare-qml-app/
|
||||||
rm -rf ${workdir}/src/build_scripts/
|
rm -rf ${workdir}/src/build_scripts/
|
||||||
rm ${workdir}/debian/*~
|
rm ${workdir}/debian/*~
|
||||||
|
|
||||||
# Cloning sqlcipher
|
|
||||||
# git clone https://github.com/sqlcipher/sqlcipher.git
|
|
||||||
|
|
||||||
cd ${workdir}
|
cd ${workdir}
|
||||||
echo Setting version numbers...
|
echo Setting version numbers...
|
||||||
|
|
||||||
|
@ -144,7 +144,16 @@ if test "${makeorig}" = "yes" ; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd -
|
||||||
|
else
|
||||||
|
tar zxvf retroshare_${version_number}.orig.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Cloning sqlcipher
|
||||||
|
# git clone https://github.com/sqlcipher/sqlcipher.git
|
||||||
|
|
||||||
echo Calling debuild...
|
echo Calling debuild...
|
||||||
|
cd ${workdir}
|
||||||
debuild -S -k${gpgkey} --lintian-opts +pedantic -EviIL
|
debuild -S -k${gpgkey} --lintian-opts +pedantic -EviIL
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue