diff --git a/wine-hell/PKGBUILD b/wine-hell/PKGBUILD index 4e25053..9d95899 100644 --- a/wine-hell/PKGBUILD +++ b/wine-hell/PKGBUILD @@ -1,7 +1,13 @@ pkgname=yenon-wine-hell -pkgver=1.0.0 +pkgver=1.0.1 pkgrel=1 -pkgdesc="GE-Proton dependencies" +pkgdesc="GE-Proton dependencies and wine association purger" arch=('any') depends=('wine-staging' 'winetricks' 'giflib' 'lib32-giflib' 'libpng' 'lib32-libpng' 'libldap' 'lib32-libldap' 'gnutls' 'lib32-gnutls' 'mpg123' 'lib32-mpg123' 'openal' 'lib32-openal' 'v4l-utils' 'lib32-v4l-utils' 'libpulse' 'lib32-libpulse' 'alsa-plugins' 'lib32-alsa-plugins' 'alsa-lib' 'lib32-alsa-lib' 'libjpeg-turbo' 'lib32-libjpeg-turbo' 'libxcomposite' 'lib32-libxcomposite' 'libxinerama' 'lib32-libxinerama' 'ncurses' 'lib32-ncurses' 'opencl-icd-loader' 'lib32-opencl-icd-loader' 'libxslt' 'lib32-libxslt' 'libva' 'lib32-libva' 'gtk3' 'lib32-gtk3' 'gst-plugins-base-libs' 'lib32-gst-plugins-base-libs' 'vulkan-icd-loader' 'lib32-vulkan-icd-loader' 'cups' 'samba' 'dosbox') +source=(stop-wine-associations.hook) +sha256sums=('843ca51412e690531bc4da4195156461d40c289b813b1294a44946d6b575b099') +license=('Apache') +package() { + install -Dm0644 -t "$pkgdir/usr/share/libalpm/hooks/" ${source[0]} +} \ No newline at end of file diff --git a/wine-hell/stop-wine-associations.hook b/wine-hell/stop-wine-associations.hook new file mode 100644 index 0000000..367393b --- /dev/null +++ b/wine-hell/stop-wine-associations.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Path +Target = usr/share/wine/wine.inf + +[Action] +Description = Stopping Wine from hijacking file associations... +When = PostTransaction +Exec = /bin/sh -c '/usr/bin/grep -q "HKCU,\"Software\\\Wine\\\FileOpenAssociations\",\"Enable\",2,\"N\"" /usr/share/wine/wine.inf || /usr/bin/sed -i "s/\[Services\]/\[Services\]\nHKCU,\"Software\\\Wine\\\FileOpenAssociations\",\"Enable\",2,\"N\"/g" /usr/share/wine/wine.inf'