summaryrefslogtreecommitdiffstats
path: root/contrib/scripts/makemod_wine
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-12-14 11:05:46 +0100
committer Eric Hameleers <alien@slackware.com>2020-12-14 11:05:46 +0100
commitccd76b1fe92c815480f1d24fa8b13503279bf942 (patch)
tree8e4ad377c375da00f50e93450a3d6c440ad95565 /contrib/scripts/makemod_wine
parent6236fdaf22ccb26cbf801eca7855897eb78d0a27 (diff)
downloadliveslak-ccd76b1fe92c815480f1d24fa8b13503279bf942.tar.gz
liveslak-ccd76b1fe92c815480f1d24fa8b13503279bf942.tar.xz
Contribute a sample script to create a Wine module for liveslak
Diffstat (limited to '')
-rw-r--r--contrib/scripts/makemod_wine28
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/scripts/makemod_wine b/contrib/scripts/makemod_wine
new file mode 100644
index 0000000..c2fbf95
--- /dev/null
+++ b/contrib/scripts/makemod_wine
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+# Root of all my slackbuilds:
+SBROOT=${SBROOT:-"/home/slackbuilds"}
+
+# Package versions for wine and SDL_sound/OpenAL:
+WINEREL=$(ls ${SBROOT}/wine/pkg64/current/wine-*.t?z |rev |cut -f3 -d- |rev)
+FAUDIOREL=$(ls ${SBROOT}/FAudio/pkg/current/FAudio-*.t?z |rev |cut -f3 -d- |rev)
+VKD3DREL=$(ls ${SBROOT}/vkd3d/pkg/current/vkd3d-*.t?z |rev |cut -f3 -d- |rev)
+
+# Package locations for wine vkd3d and FAudio:
+WINEPKG=$(ls ${SBROOT}/wine/pkg64/current/wine-*.t?z)
+FAUDIOPKG=$(ls ${SBROOT}/FAudio/pkg/current/FAudio-*.t?z)
+VKD3DPKG=$(ls ${SBROOT}/vkd3d/pkg/current/vkd3d-*.t?z)
+
+# Convert the 32bit FAudio into a 'compat32' package:
+convertpkg-compat32 -i ${FAUDIOPKG} -d /tmp
+
+# Convert the 32bit vkd3d into a 'compat32' package:
+convertpkg-compat32 -i ${VKD3DPKG} -d /tmp
+
+# Create the SXZ module:
+SCRATCHDIR=$(mktemp -t -d makesxz.XXXXXX)
+installpkg --root $SCRATCHDIR ${WINEPKG}
+installpkg --root $SCRATCHDIR /tmp/FAudio-compat32-${FAUDIOREL}-x86_64-*compat32.txz
+installpkg --root $SCRATCHDIR /tmp/vkd3d-compat32-${VKD3DREL}-x86_64-*compat32.txz
+./makemod $SCRATCHDIR ./optional/0060-wine-${WINEREL}-current-x86_64.sxz
+rm -r $SCRATCHDIR