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

49 lines
998 B

#!/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 folder
rm -rf install/
cd ..
}
package() {
cp -r archive/etc ${pkgdir}/
cp -r archive/usr ${pkgdir}/
dch --newversion $pkgver --distribution unstable --controlmaint "New relase."
}
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