Moved most of the ephemeral stuff in a tmp flder, added lintian overrides, set proper copyright with updating script in case of changes to it

master
Meliurwen 3 years ago
parent e6adb58b81
commit e23c838108
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 8
      .gitignore
  2. 6
      debian/changelog
  3. 1
      debian/control
  4. 3310
      debian/copyright
  5. 12
      debian/lintian-overrides
  6. 66
      main.sh

8
.gitignore vendored

@ -1,3 +1,9 @@
archive/
tree/
tmp/
chromium-ungoogled-*.txz
debian/.debhelper/
debian/debhelper-build-stamp
debian/chromium-ungoogled/
debian/chromium-ungoogled.substvars
debian/files

6
debian/changelog vendored

@ -1,3 +1,9 @@
chromium-ungoogled (101.0.4951.64) unstable; urgency=medium
* New release.
-- Meliurwen <meliurwen@gmail.com> Thu, 19 May 2022 13:16:10 +0200
chromium-ungoogled (96.0.4664.45) unstable; urgency=medium
* Initial release.

1
debian/control vendored

@ -12,6 +12,7 @@ Package: chromium-ungoogled
Architecture: amd64
Depends:
${misc:Depends},
${shlibs:Depends},
Provides:
www-browser,
gnome-www-browser,

3310
debian/copyright vendored

File diff suppressed because it is too large Load Diff

@ -0,0 +1,12 @@
# Embedded libraries
embedded-library freetype usr/lib/chromium-ungoogled/chromium-ungoogled
embedded-library lcms2 usr/lib/chromium-ungoogled/chromium-ungoogled
embedded-library libjpeg usr/lib/chromium-ungoogled/chromium-ungoogled
embedded-library libjsoncpp usr/lib/chromium-ungoogled/chromium-ungoogled
embedded-library libpng usr/lib/chromium-ungoogled/chromium-ungoogled
embedded-library openjpeg usr/lib/chromium-ungoogled/chromium-ungoogled
embedded-library srtp usr/lib/chromium-ungoogled/chromium-ungoogled
embedded-library tiff usr/lib/chromium-ungoogled/chromium-ungoogled
# This error is caused by dh_makeshlibs which is used by dpkg-buildpackage
package-has-unnecessary-activation-of-ldconfig-trigger

@ -2,8 +2,35 @@
set -e
retrieve() {
mkdir -p tmp
printf "Downloading '%s'...\n" "${archive_pkg}"
if [ ! -f "tmp/${archive_pkg}" ]; then
curl -o "tmp/${archive_pkg}" "http://www.slackware.com/~alien/slackbuilds/chromium-ungoogled/pkg64/current/${archive_pkg}"
fi
if [ ! -f "checksums/${archive_pkg}.md5" ]; then
curl -o "checksums/${archive_pkg}.md5" "http://www.slackware.com/~alien/slackbuilds/chromium-ungoogled/pkg64/current/${archive_pkg}.md5"
fi
printf "Checking the integrity of '%s'...\n" "${archive_pkg}"
cd tmp
md5sum -c "../checksums/${archive_pkg}.md5"
cd ..
printf "Retrieving necessary metadata...\n"
if [ ! -f "tmp/copyright" ]; then
curl -o "tmp/copyright" "https://salsa.debian.org/chromium-team/chromium/-/raw/master/debian/copyright"
fi
}
prepare() {
mkdir archive && cd archive
if ! cmp --silent "debian/copyright" "tmp/copyright"; then
cp "tmp/copyright" "debian/copyright"
fi
mkdir tmp/archive && cd tmp/archive
tar -xf "../${archive_pkg}" 2>/dev/null
@ -15,37 +42,38 @@ prepare() {
rm -rf install/
rm -rf usr/doc/
cd ..
# Correct to the new path
sed -i "s|/usr/lib64/|/usr/lib/|" usr/bin/chromium-ungoogled
# It should not be executable
chmod 644 usr/lib/chromium-ungoogled/vk_swiftshader_icd.json
cd ../..
}
package() {
mkdir tree
cp -r archive/etc ${pkgdir}/etc
cp -r archive/usr ${pkgdir}/usr
# Copy the content to the rootdir, ready to be packaged
cp -r tmp/archive/etc "${pkgdir}/etc"
cp -r tmp/archive/usr "${pkgdir}/usr"
dch --newversion $pkgver --distribution unstable --controlmaint "New release."
# Update the changelog
dch \
--newversion "${pkgver}" \
--distribution unstable \
--controlmaint "New release."
}
pkgver=101.0.4951.64
srcdir="$PWD"
archive_pkg="chromium-ungoogled-${pkgver}-x86_64-1alien.txz"
if [ ! -f "${archive_pkg}" ]; then
curl -o "${archive_pkg}" "http://www.slackware.com/~alien/slackbuilds/chromium-ungoogled/pkg64/current/${archive_pkg}"
fi
if [ ! -f "checksums/${archive_pkg}.md5" ]; then
curl -o "checksums/${archive_pkg}.md5" "http://www.slackware.com/~alien/slackbuilds/chromium-ungoogled/pkg64/current/${archive_pkg}.md5"
fi
cat "checksums/${archive_pkg}.md5" | md5sum -c
prepare
pkgdir="tree"
retrieve
printf "Preparing...\n"
prepare
printf "Packaging...\n"
package
dpkg-buildpackage

Loading…
Cancel
Save