# 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.3.0 version_gtk_theme=15eb243288a1066f4facc07e9ada55abac770508 version_flat_theme=96bffc0b13c81a0a608e036da5b1c720e647a11a update_url="https://github.com/actionless/$name/releases" update_names="/archive/$version.tar.gz" dlextract "https://github.com/actionless/$name/archive/$version/$name-$version.tar.gz" \ '505ae6937bfcb070b900443c124d4a9d' dlextract "https://github.com/actionless/$name-gtk-theme/archive/$version_gtk_theme/$name-gtk-theme-$version_gtk_theme.tar.gz" \ '1e8ac0b818129dc80d6d66de23d4e0ed' dlextract "https://github.com/nana-4/Flat-Plat/archive/$version_flat_theme/Flat-Plat-$version_flat_theme.tar.gz" \ '808117c556f10ec9fff38e93dc0201e9' _ cd "$name-$version" mv -T "../$name-gtk-theme-$version_gtk_theme" gtk-theme mv -T "../Flat-Plat-$version_flat_theme" flat-plat-theme # Run the PKGBUILD package() function ln -s . oomox mkdir -p install ln -s ../install gtk-theme/install ln -s ../install flat-plat-theme/install ( pkgdir=./install python() { python3 "$@"; } . ./PKGBUILD package ) # 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/* sed -i -e "2ccd '/$dir_prefix/$dir_data/$name/gtk-theme'" install/usr/bin/oomox-cli 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/oomox.desktop # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: