Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.9 KiB

  1. #!/bin/bash
  2. #Grab package name & package version for PlayOnLinux & this script
  3. PKGNAME=$(cat ../PKGBUILD |grep -m 1 pkgname | sed 's/^.*=//')
  4. PKGVER=$(cat ../PKGBUILD |grep -m 1 pkgver | sed 's/^.*=//')
  5. PKG=$PKGNAME-$PKGVER
  6. #Create base directories for PlayOnLinux Wine versions
  7. mkdir -p ./playonlinux/{linux-amd64/$PKG,linux-x86/$PKG}
  8. #Copy compiled files from the pkg folder into right places
  9. cp -R ../pkg/$PKGNAME/usr64/{bin,share,lib64} ./playonlinux/linux-amd64/$PKG/
  10. cp -R ../pkg/$PKGNAME/usr32/{bin,share,lib,lib64} ./playonlinux/linux-x86/$PKG/
  11. #Copy 32-bit wine & wine-preloader into 64-bit prefix bin folder.
  12. cp ../pkg/$PKGNAME/usr32/bin/{wine,wine-preloader} ./playonlinux/linux-amd64/$PKG/bin/
  13. #Copy compiled 32-bit libraries into 64-bit prefix.
  14. cp -R ../pkg/$PKGNAME/usr32/lib ./playonlinux/linux-amd64/$PKG
  15. #Create symbolic links for gecko & mono, as done with all PlayOnLinux Wine versions.
  16. ln -s $HOME/.PlayOnLinux//wine/gecko/ ./playonlinux/linux-amd64/$PKG/share/wine/gecko
  17. ln -s $HOME/.PlayOnLinux//wine/mono/ ./playonlinux/linux-amd64/$PKG/share/wine/mono
  18. ln -s $HOME/.PlayOnLinux//wine/gecko/ ./playonlinux/linux-x86/$PKG/share/wine/gecko
  19. ln -s $HOME/.PlayOnLinux//wine/mono/ ./playonlinux/linux-x86/$PKG/share/wine/mono
  20. #Copy PlayOnLinux specific libraries to Wine folders
  21. cp -R ./pol_libs/{lib,lib64} ./playonlinux/linux-amd64/$PKG/
  22. cp -R ./pol_libs/lib ./playonlinux/linux-x86/$PKG/
  23. #################################################
  24. #FINAL STEP
  25. #Copy Wine versions to PlayOnLinux folders
  26. cp -R ./playonlinux/linux-amd64/$PKG $HOME/.PlayOnLinux//wine/linux-amd64/
  27. cp -R ./playonlinux/linux-x86/$PKG $HOME/.PlayOnLinux//wine/linux-x86/
  28. #Upgrade all PlayOnLinux Wine prefixes to use the compiled Wine version
  29. for i in $HOME/.PlayOnLinux/wineprefix/*/playonlinux.cfg
  30. do
  31. sed -i "s/VERSION=.*/VERSION=$PKG/g" $i
  32. done
  33. #Remove these folders from the script folder
  34. rm -R ./playonlinux