Modernize package
* Drop kodi-addons-dev build-dep in favor of versioned dh-sequence-kodiaddon
* Drop -DOVERRIDE_PATHS=1 from debian/rules and annotate the configuration
ls -1 | grep kodi- | while read PACKAGE
do
echo "$PACKAGE:"
cd $PACKAGE
git checkout master
sed -i '/kodi-addons-dev/d' debian/control
sed -i 's/dh-sequence-kodiaddon/& (>= 2:19~)/' debian/control
sed -i '/-DOVERRIDE_PATHS=1/d;/override_dh_auto_configure:/a \\t# basilgello: -DCMAKE_INSTALL_DIR silences Kodi buildsystem\n\t# warning triggered by dh_configure unnecessarily overriding\n\t# install directory\n\t# -DUSE_LTO=0 disables LTO and makes build reproducible' debian/rules
git add debian
git commit -S -F /tmp/mass-fix.txt
git checkout local/debian/master
sed -i '/kodi-addons-dev/d' debian/control
sed -i 's/dh-sequence-kodiaddon/& (>= 2:20~)/' debian/control
sed -i '/-DOVERRIDE_PATHS=1/d;/override_dh_auto_configure:/a \\t# basilgello: -DCMAKE_INSTALL_DIR silences Kodi buildsystem\n\t# warning triggered by dh_configure unnecessarily overriding\n\t# install directory\n\t# -DUSE_LTO=0 disables LTO and makes build reproducible' debian/rules
git add debian
git commit -S -F /tmp/mass-fix.txt
cd ..
done
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
Vasyl Gello
2 years ago
3 | 3 |
Maintainer: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
|
4 | 4 |
Uploaders: Vasyl Gello <vasek.gello@gmail.com>
|
5 | 5 |
Build-Depends: debhelper-compat (= 13)
|
6 | |
Build-Depends-Arch: dh-sequence-kodiaddon,
|
|
6 |
Build-Depends-Arch: dh-sequence-kodiaddon (>= 2:19~),
|
7 | 7 |
cmake,
|
8 | |
kodi-addons-dev (>= 2:19~),
|
9 | 8 |
libjsoncpp-dev,
|
10 | 9 |
libtinyxml-dev,
|
11 | 10 |
pkg-config
|
10 | 10 |
dh $@
|
11 | 11 |
|
12 | 12 |
override_dh_auto_configure:
|
|
13 |
# basilgello: -DCMAKE_INSTALL_DIR silences Kodi buildsystem
|
|
14 |
# warning triggered by dh_configure unnecessarily overriding
|
|
15 |
# install directory
|
|
16 |
# -DUSE_LTO=0 disables LTO and makes build reproducible
|
13 | 17 |
dh_auto_configure -- -DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
|
14 | 18 |
-DBUILD_SHARED_LIBS=1 \
|
15 | 19 |
-DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/kodi \
|
16 | |
-DOVERRIDE_PATHS=1 \
|
17 | 20 |
-DUSE_LTO=0
|