forked from valr/awf
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
1,661 additions
and
730 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
custom: ["https://www.paypal.me/luigifab", "https://gandi.link/f/4b904048"] | ||
custom: ["https://www.paypal.me/luigifab", "https://gandi.link/f/4b904048", "https://ekwateur.fr/?parrain=EKW001147103"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUBDIRS = src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
awf-gtk2 (2.2.0-5) unstable; urgency=low | ||
|
||
* Initial debian package release (Closes: #959434) | ||
|
||
-- Fabrice Creuzot <code@luigifab.fr> Wed, 11 Nov 2020 12:00:00 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
#!/bin/bash | ||
# debian: sudo apt install dpkg-dev devscripts build-essential dh-make dh-autoreconf intltool libgtk2.0-dev | ||
|
||
|
||
|
||
cd "$(dirname "$0")" | ||
version="2.2.0" | ||
gtk="gtk2" | ||
|
||
rm -rf builder/ | ||
mkdir builder | ||
|
||
# copy to a tmp directory | ||
if [ true ]; then | ||
cd builder | ||
wget /~https://github.com/luigifab/awf-extended/archive/v${version}/awf-extended-${version}.tar.gz | ||
tar xzf awf-extended-${version}.tar.gz | ||
cd .. | ||
else | ||
temp=awf-extended-${version} | ||
mkdir /tmp/${temp} | ||
cp -r ../* /tmp/${temp}/ | ||
rm -rf /tmp/${temp}/*/builder/ | ||
|
||
mv /tmp/${temp} builder/ | ||
cp /usr/share/common-licenses/GPL-3 builder/${temp}/LICENSE | ||
|
||
cd builder/ | ||
tar czf ${temp}.tar.gz ${temp} | ||
cd .. | ||
fi | ||
|
||
|
||
# create packages for debian and ubuntu | ||
for serie in unstable hirsute groovy focal bionic xenial trusty precise; do | ||
|
||
if [ $serie = "unstable" ]; then | ||
# for ubuntu | ||
cp -a builder/awf-extended-${version}/ builder/awf-extended-${version}+src/ | ||
# debian only | ||
cd builder/awf-extended-${version}/ | ||
else | ||
# ubuntu only | ||
cp -a builder/awf-extended-${version}+src/ builder/awf-extended-${version}+${serie}/ | ||
cd builder/awf-extended-${version}+${serie}/ | ||
fi | ||
|
||
dh_make -s -y -f ../awf-extended-${version}.tar.gz -p awf-${gtk} | ||
|
||
rm -f debian/*ex debian/*EX debian/README* debian/*doc* | ||
mkdir debian/upstream | ||
cp debian-${gtk}/* debian/ | ||
mv debian/metadata debian/upstream/metadata | ||
|
||
|
||
|
||
if [ $serie = "unstable" ]; then | ||
dpkg-buildpackage -us -uc | ||
else | ||
# debhelper: unstable:13 hirsute:13 groovy:13 focal:12 bionic:9 xenial:9 trusty:9 precise:9 | ||
if [ $serie = "focal" ]; then | ||
sed -i 's/debhelper-compat (= 13)/debhelper-compat (= 12)/g' debian/control | ||
fi | ||
if [ $serie = "bionic" ]; then | ||
sed -i 's/dh $@/dh $@ --with autoreconf/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper-compat (= 9), dh-autoreconf/g' debian/control | ||
fi | ||
if [ $serie = "xenial" ]; then | ||
sed -i 's/dh $@/dh $@ --with autoreconf/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9), dh-autoreconf/g' debian/control | ||
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control | ||
echo 9 > debian/compat | ||
fi | ||
if [ $serie = "trusty" ]; then | ||
sed -i 's/dh $@/dh $@ --with autotools_dev,autoreconf/g' debian/rules | ||
sed -i 's/override_dh_update_autotools_config/override_dh_autotools-dev_updateconfig/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9), autotools-dev, dh-autoreconf/g' debian/control | ||
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control | ||
echo 9 > debian/compat | ||
fi | ||
if [ $serie = "precise" ]; then | ||
sed -i 's/dh $@/dh $@ --with autotools_dev,autoreconf/g' debian/rules | ||
sed -i 's/override_dh_update_autotools_config/override_dh_autotools-dev_updateconfig/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9), autotools-dev, dh-autoreconf/g' debian/control | ||
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control | ||
echo 9 > debian/compat | ||
fi | ||
sed -i 's/unstable/'${serie}'/g' debian/changelog | ||
sed -i 's/-5) /-5+'${serie}') /' debian/changelog | ||
dpkg-buildpackage -us -uc -ui -d -S | ||
fi | ||
echo "===========================" | ||
cd .. | ||
|
||
if [ $serie = "unstable" ]; then | ||
# debian only | ||
debsign awf-${gtk}_${version}-*.changes | ||
echo "===========================" | ||
lintian -EviIL +pedantic awf-${gtk}_${version}-*.deb | ||
else | ||
# ubuntu only | ||
debsign awf-${gtk}_${version}*+${serie}*source.changes | ||
fi | ||
echo "===========================" | ||
cd .. | ||
done | ||
|
||
ls -dltrh $PWD/builder/*.deb $PWD/builder/*.changes | ||
echo "===========================" | ||
|
||
# cleanup | ||
rm -rf builder/*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
applications/awf-gtk2.desktop usr/share/applications | ||
icons/* usr/share/icons/hicolor | ||
locale/* usr/share/locale |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/make -f | ||
|
||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_update_autotools_config: | ||
sed -i 's/ -eq 3/ -eq -1/g' configure.ac | ||
sed -i 's/ -eq 4/ -eq -1/g' configure.ac | ||
touch NEWS | ||
touch AUTHORS | ||
touch README | ||
touch ChangeLog | ||
mv LICENSE COPYING | ||
for file in icons/*/*/*.png; do mv $$file `dirname $$file`/awf-gtk2.png; done | ||
for file in icons/*/*/*.svg; do mv $$file `dirname $$file`/awf-gtk2.svg; done | ||
for file in src/po/*.po; do \ | ||
code=`basename "$$file" .po`; \ | ||
mkdir -p locale/$$code/LC_MESSAGES/; \ | ||
msgfmt src/po/$$code.po -o locale/$$code/LC_MESSAGES/awf-gtk2.mo; \ | ||
done |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
awf-gtk3 (2.2.0-5) unstable; urgency=low | ||
|
||
* Initial debian package release (Closes: #959436) | ||
|
||
-- Fabrice Creuzot <code@luigifab.fr> Wed, 11 Nov 2020 12:00:00 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
#!/bin/bash | ||
# debian: sudo apt install dpkg-dev devscripts build-essential dh-make dh-autoreconf intltool libgtk-3-dev | ||
|
||
|
||
|
||
cd "$(dirname "$0")" | ||
version="2.2.0" | ||
gtk="gtk3" | ||
|
||
rm -rf builder/ | ||
mkdir builder | ||
|
||
# copy to a tmp directory | ||
if [ true ]; then | ||
cd builder | ||
wget /~https://github.com/luigifab/awf-extended/archive/v${version}/awf-extended-${version}.tar.gz | ||
tar xzf awf-extended-${version}.tar.gz | ||
cd .. | ||
else | ||
temp=awf-extended-${version} | ||
mkdir /tmp/${temp} | ||
cp -r ../* /tmp/${temp}/ | ||
rm -rf /tmp/${temp}/*/builder/ | ||
|
||
mv /tmp/${temp} builder/ | ||
cp /usr/share/common-licenses/GPL-3 builder/${temp}/LICENSE | ||
|
||
cd builder/ | ||
tar czf ${temp}.tar.gz ${temp} | ||
cd .. | ||
fi | ||
|
||
|
||
# create packages for debian and ubuntu | ||
for serie in unstable hirsute groovy focal bionic xenial trusty precise; do | ||
|
||
if [ $serie = "unstable" ]; then | ||
# for ubuntu | ||
cp -a builder/awf-extended-${version}/ builder/awf-extended-${version}+src/ | ||
# debian only | ||
cd builder/awf-extended-${version}/ | ||
else | ||
# ubuntu only | ||
cp -a builder/awf-extended-${version}+src/ builder/awf-extended-${version}+${serie}/ | ||
cd builder/awf-extended-${version}+${serie}/ | ||
fi | ||
|
||
dh_make -s -y -f ../awf-extended-${version}.tar.gz -p awf-${gtk} | ||
|
||
rm -f debian/*ex debian/*EX debian/README* debian/*doc* | ||
mkdir debian/upstream | ||
cp debian-${gtk}/* debian/ | ||
mv debian/metadata debian/upstream/metadata | ||
|
||
|
||
|
||
if [ $serie = "unstable" ]; then | ||
dpkg-buildpackage -us -uc | ||
else | ||
# debhelper: unstable:13 hirsute:13 groovy:13 focal:12 bionic:9 xenial:9 trusty:9 precise:9 | ||
if [ $serie = "focal" ]; then | ||
sed -i 's/debhelper-compat (= 13)/debhelper-compat (= 12)/g' debian/control | ||
fi | ||
if [ $serie = "bionic" ]; then | ||
sed -i 's/dh $@/dh $@ --with autoreconf/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper-compat (= 9), dh-autoreconf/g' debian/control | ||
fi | ||
if [ $serie = "xenial" ]; then | ||
sed -i 's/dh $@/dh $@ --with autoreconf/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9), dh-autoreconf/g' debian/control | ||
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control | ||
echo 9 > debian/compat | ||
fi | ||
if [ $serie = "trusty" ]; then | ||
sed -i 's/dh $@/dh $@ --with autotools_dev,autoreconf/g' debian/rules | ||
sed -i 's/override_dh_update_autotools_config/override_dh_autotools-dev_updateconfig/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9), autotools-dev, dh-autoreconf/g' debian/control | ||
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control | ||
echo 9 > debian/compat | ||
fi | ||
if [ $serie = "precise" ]; then | ||
sed -i 's/dh $@/dh $@ --with autotools_dev,autoreconf/g' debian/rules | ||
sed -i 's/override_dh_update_autotools_config/override_dh_autotools-dev_updateconfig/g' debian/rules | ||
sed -i 's/debhelper-compat (= 13)/debhelper (>= 9), autotools-dev, dh-autoreconf/g' debian/control | ||
sed -i ':a;N;$!ba;s/Rules-Requires-Root: no\n//g' debian/control | ||
echo 9 > debian/compat | ||
fi | ||
sed -i 's/unstable/'${serie}'/g' debian/changelog | ||
sed -i 's/-5) /-5+'${serie}') /' debian/changelog | ||
dpkg-buildpackage -us -uc -ui -d -S | ||
fi | ||
echo "===========================" | ||
cd .. | ||
|
||
if [ $serie = "unstable" ]; then | ||
# debian only | ||
debsign awf-${gtk}_${version}-*.changes | ||
echo "===========================" | ||
lintian -EviIL +pedantic awf-${gtk}_${version}-*.deb | ||
else | ||
# ubuntu only | ||
debsign awf-${gtk}_${version}*+${serie}*source.changes | ||
fi | ||
echo "===========================" | ||
cd .. | ||
done | ||
|
||
ls -dltrh $PWD/builder/*.deb $PWD/builder/*.changes | ||
echo "===========================" | ||
|
||
# cleanup | ||
rm -rf builder/*/ |
Oops, something went wrong.