|
|
|
# Note: To get the submodule versions, run:
|
|
|
|
# git clone --depth=1 -b $version https://github.com/actionless/oomox
|
|
|
|
# cd oomox
|
|
|
|
# git submodule
|
|
|
|
|
|
|
|
name=oomox
|
|
|
|
version=1.6.1
|
|
|
|
version_gtk_theme=aa9081b2899d7e8ba8ae47543173d2d9f0f13921
|
|
|
|
version_materia_theme=a101c9b5881bc5c89ec1c806ae64034b7e5ec4f8
|
|
|
|
version_archdroid_icon_theme=6dc4c92689ea2ce99534d6f461283efdf8ffd270
|
|
|
|
version_gnome_colors_icon_theme=2f3d8dd3ce59e260803660f158a7a91d643518bf
|
|
|
|
version_base16_builder=d022b9daa5c233a08a8d3b94fd534a3041e3a8c1
|
|
|
|
version_oomoxify=fe1b4279bc5e4d39116c718313bf68e167daaabc
|
|
|
|
|
|
|
|
dlextract "https://github.com/themix-project/$name/archive/$version/$name-$version.tar.gz" \
|
|
|
|
'9a9534620828a0d94793f3419886380c'
|
|
|
|
dlextract "https://github.com/themix-project/$name-gtk-theme/archive/$version_gtk_theme/$name-gtk-theme-$version_gtk_theme.tar.gz" \
|
|
|
|
'e307efd65253350c6efac7372f4cdf15'
|
|
|
|
dlextract "https://github.com/nana-4/materia-theme/archive/$version_materia_theme/materia-theme-$version_materia_theme.tar.gz" \
|
|
|
|
'cb5645ed2c9cd11e6424e08c0b68e35f'
|
|
|
|
dlextract "https://github.com/themix-project/archdroid-icon-theme/archive/$version_archdroid_icon_theme/archdroid-icon-theme-$version_archdroid_icon_theme.tar.gz" \
|
|
|
|
'f9271c34dcbe274961ad822ae1807aec'
|
|
|
|
dlextract "https://github.com/themix-project/gnome-colors-icon-theme/archive/$version_gnome_colors_icon_theme/gnome-colors-icon-theme-$version_gnome_colors_icon_theme.tar.gz" \
|
|
|
|
'579130badf468f75532d0faf4c01c44d'
|
|
|
|
dlextract "https://github.com/base16-builder/base16-builder/archive/$version_base16_builder/base16-builder-$version_base16_builder.tar.gz" \
|
|
|
|
'38fc51a55c798032266c03ee82461119'
|
|
|
|
dlextract "https://github.com/themix-project/oomoxify/archive/$version_oomoxify/oomoxify-$version_oomoxify.tar.gz" \
|
|
|
|
'5de426e806bb620bdff16f45425950b4'
|
|
|
|
_
|
|
|
|
|
|
|
|
cd "$name-$version"
|
|
|
|
mv -T "../$name-gtk-theme-$version_gtk_theme" plugins/theme_oomox/gtk-theme
|
|
|
|
mv -T "../materia-theme-$version_materia_theme" plugins/theme_materia/materia-theme
|
|
|
|
mv -T "../archdroid-icon-theme-$version_archdroid_icon_theme" plugins/icons_archdroid/archdroid-icon-theme
|
|
|
|
mv -T "../gnome-colors-icon-theme-$version_gnome_colors_icon_theme" plugins/icons_gnomecolors/gnome-colors-icon-theme
|
|
|
|
mv -T "../base16-builder-$version_base16_builder" plugins/import_base16/base16-data
|
|
|
|
mv -T "../oomoxify-$version_oomoxify" plugins/oomoxify
|
|
|
|
|
|
|
|
# Run the install script in a contained directory
|
|
|
|
mkdir -p install
|
|
|
|
packaging/install.sh ./ "$PWD/install"
|
|
|
|
|
|
|
|
# Install the package properly
|
|
|
|
mkdir -p "$dir_install/$dir_prefix/$dir_data/$name"
|
|
|
|
cp -Ta install/opt/oomox "$dir_install/$dir_prefix/$dir_data/$name"
|
|
|
|
|
|
|
|
# Patch and install wrappers
|
|
|
|
sed -i -e "2ccd '/$dir_prefix/$dir_data/$name'" install/usr/bin/*
|
|
|
|
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" install/usr/bin/*
|
|
|
|
|
|
|
|
# Install desktop
|
|
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_data/applications" install/usr/share/applications/com.github.actionless.oomox.desktop
|
|
|
|
|
|
|
|
# Install icons
|
|
|
|
mkdir -p "$dir_install/$dir_prefix/$dir_data/icons"
|
|
|
|
cp -Ta install/usr/share/icons/hicolor "$dir_install/$dir_prefix/$dir_data/icons/hicolor"
|
|
|
|
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|