You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chromium-ungoogled/main.sh

52 lines
1.0 KiB

#!/bin/sh
set -e
prepare() {
mkdir archive && cd archive
tar -xf "../${archive_pkg}" 2>/dev/null
# Move a couple of things in order to conform to Debian's standards
mv usr/lib64 usr/lib
mv usr/man usr/share/
# Remove Slackware-specific folders
rm -rf install/
rm -rf usr/doc/
cd ..
}
package() {
mkdir tree
cp -r archive/etc ${pkgdir}/etc
cp -r archive/usr ${pkgdir}/usr
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"
package
dpkg-buildpackage