Remove partial rebranding of ubuntustudio packages
Ubuntustudio packages are purged from upstream for branding reasons. It includes a great amount of packages, out of which there exist multiple interrelated dependencies. If somebody is ever interested in working on the branding, then all of them should be rebranded and ported together. Otherwise, it will not be possible to install some of them, which is currently the case with trisquelstudio-menu.
This commit is contained in:
parent
5b2b5eaf16
commit
3f72e9a7e1
2 changed files with 0 additions and 135 deletions
|
|
@ -1,81 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2019 Mason Hock <mason@masonhock.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
VERSION=1
|
||||
EXTERNAL='deb-src http://ppa.launchpad.net/ubuntustudio-ppa/backports/ubuntu $UPSTREAM main '
|
||||
REPOKEY=F596CF7036BBAA6D
|
||||
BACKPORTS=true
|
||||
|
||||
. ./config
|
||||
|
||||
# doesn't work without gir1.2-gtk-3.0
|
||||
sed -i '/Depends: a2jmidid,/a \ \ \ \ \ \ \ \ \ gir1.2-gtk-3.0,' debian/control
|
||||
|
||||
# rebrand
|
||||
sed 's/Package: ubuntustudio-controls/Package: trisquelstudio-controls/g' -i debian/control
|
||||
sed 's/Ubuntu Studio Controls/Trisquel Studio Controls/g' -i debian/control
|
||||
|
||||
sed 's/Ubuntu Studio/Trisquel Studio/g' -i usr/share/ubuntustudio-controls/ubuntustudio-controls.glade
|
||||
sed 's/Ubuntu Studio/Trisquel Studio/g' -i usr/share/polkit-1/actions/com.ubuntustudio.pkexec.ubuntustudio-controls.policy
|
||||
sed 's/Ubuntu Studio/Trisquel Studio/g' -i usr/share/applications/ubuntustudio-controls.desktop
|
||||
sed 's/Ubuntu Studio/Trisquel Studio/g' -i usr/share/man/man1/ubuntustudio-controls.1
|
||||
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i lib/systemd/ubuntustudio
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i lib/systemd/system/ondemand.service.d/ubuntustudio.conf
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i usr/share/applications/ubuntustudio-controls.desktop
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i usr/share/man/man1/ubuntustudio-controls.1
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i usr/share/man/man2/autojack.2
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i usr/share/man/man2/ubuntustudio-system.2
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i usr/bin/autojack
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i usr/bin/ubuntustudio-controls
|
||||
sed 's/ubuntustudio/trisquelstudio/g' -i usr/sbin/ubuntustudio-system
|
||||
|
||||
sed 's/Ubuntustudio/Trisquelstudio/g' -i lib/systemd/ubuntustudio
|
||||
sed 's/Ubuntustudio/Trisquelstudio/g' -i usr/share/man/man1/ubuntustudio-controls.1
|
||||
sed 's/Ubuntustudio/Trisquelstudio/g' -i usr/share/man/man2/ubuntustudio-system.2
|
||||
|
||||
sed 's/UbuntuStudio/TrisquelStudio/g' -i README
|
||||
sed 's/UbuntuStudio/TrisquelStudio/g' -i usr/bin/ubuntustudio-controls
|
||||
|
||||
sed 's/trisquelstudio\.org/ubuntustudio\.org/g' -i usr/share/man/man1/ubuntustudio-controls.1
|
||||
sed 's/trisquelstudio\.org/ubuntustudio\.org/g' -i usr/share/man/man2/autojack.2
|
||||
sed 's/trisquelstudio\.org/ubuntustudio\.org/g' -i usr/share/man/man2/ubuntustudio-system.2
|
||||
|
||||
mv lib/systemd/ubuntustudio lib/systemd/trisquelstudio
|
||||
mv lib/systemd/system/ondemand.service.d/ubuntustudio.conf lib/systemd/system/ondemand.service.d/trisquelstudio.conf
|
||||
mv debian/ubuntustudio-controls.install debian/trisquelstudio-controls.install
|
||||
mv usr/share/ubuntustudio-controls usr/share/trisquelstudio-controls
|
||||
mv usr/share/trisquelstudio-controls/ubuntustudio-controls.glade usr/share/trisquelstudio-controls/trisquelstudio-controls.glade
|
||||
mv usr/share/polkit-1/actions/com.ubuntustudio.pkexec.ubuntustudio-controls.policy usr/share/polkit-1/actions/com.trisquelstudio.pkexec.trisquelstudio-controls.policy
|
||||
mv usr/share/applications/ubuntustudio-controls.desktop usr/share/applications/trisquelstudio-controls.desktop
|
||||
mv usr/share/icons/hicolor/22x22/apps/ubuntustudio-controls.png usr/share/icons/hicolor/22x22/apps/trisquelstudio-controls.png
|
||||
mv usr/share/icons/hicolor/256x256/apps/ubuntustudio-controls.png usr/share/icons/hicolor/256x256/apps/trisquelstudio-controls.png
|
||||
mv usr/share/icons/hicolor/128x128/apps/ubuntustudio-controls.png usr/share/icons/hicolor/128x128/apps/trisquelstudio-controls.png
|
||||
mv usr/share/icons/hicolor/48x48/apps/ubuntustudio-controls.png usr/share/icons/hicolor/48x48/apps/trisquelstudio-controls.png
|
||||
mv usr/share/icons/hicolor/16x16/apps/ubuntustudio-controls.png usr/share/icons/hicolor/16x16/apps/trisquelstudio-controls.png
|
||||
mv usr/share/icons/hicolor/64x64/apps/ubuntustudio-controls.png usr/share/icons/hicolor/64x64/apps/trisquelstudio-controls.png
|
||||
mv usr/share/icons/hicolor/24x24/apps/ubuntustudio-controls.png usr/share/icons/hicolor/24x24/apps/trisquelstudio-controls.png
|
||||
mv usr/share/man/man1/ubuntustudio-controls.1 usr/share/man/man1/trisquelstudio-controls.1
|
||||
mv usr/share/man/man2/ubuntustudio-system.2 usr/share/man/man2/trisquelstudio-system.2
|
||||
mv usr/bin/ubuntustudio-controls usr/bin/trisquelstudio-controls
|
||||
mv usr/sbin/ubuntustudio-system usr/sbin/trisquelstudio-system
|
||||
|
||||
changelog "Compiled for Trisquel"
|
||||
|
||||
compile
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2019 Mason Hock <mason@masonhock.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
VERSION=1
|
||||
EXTERNAL='deb-src http://ppa.launchpad.net/ubuntustudio-ppa/backports/ubuntu $UPSTREAM main '
|
||||
REPOKEY=F596CF7036BBAA6D
|
||||
BACKPORTS=true
|
||||
|
||||
. ./config
|
||||
|
||||
# remove dependency on ubuntustudio-installer
|
||||
sed 's/ubuntustudio-installer, //g' debian/control -i
|
||||
|
||||
# remove ubuntu-specific data
|
||||
rm usr/share/applications/ubuntustudio-*
|
||||
rm usr/share/desktop-directories/ubuntustudio-info.directory
|
||||
|
||||
sed 's/ubuntu-software-center.desktop/gnome-app-install.desktop/g' -i etc/xdg/menus/applications-merged/studio.menu
|
||||
sed 's/ubuntu/trisquel/g' -i etc/xdg/menus/applications-merged/studio.menu
|
||||
sed 's/Ubuntu/Trisquel/g' -i etc/xdg/menus/applications-merged/studio.menu
|
||||
|
||||
sed 's/Package: ubuntustudio-menu/Package: trisquelstudio-menu/g' -i debian/control
|
||||
|
||||
for file in $(grep -l ubuntu usr/share/desktop-directories/ubuntustudio-*); do
|
||||
sed 's/ubuntu/trisquel/g' -i $file; done
|
||||
|
||||
for file in $(grep -l Ubuntu usr/share/desktop-directories/ubuntustudio-*); do
|
||||
sed 's/Ubuntu/Trisquel/g' -i $file; done
|
||||
|
||||
mv usr/share/ubuntustudio usr/share/trisquelstudio
|
||||
mv usr/share/lintian/overrides/ubuntustudio-menu usr/share/lintian/overrides/trisquelstudio-menu
|
||||
rename 's/ubuntu/trisquel/' usr/share/icons/hicolor/scalable/categories/ubuntustudio-*.svg;
|
||||
rename 's/ubuntu/trisquel/' usr/share/icons/hicolor/*/places/ubuntustudio-*.png
|
||||
rename 's/ubuntu/trisquel/' usr/share/desktop-directories/ubuntustudio-*.directory
|
||||
|
||||
changelog "Compiled for Trisquel"
|
||||
|
||||
compile
|
||||
Loading…
Add table
Add a link
Reference in a new issue