diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | rdworks-wine-bin | 33 |
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..77087c82022b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = rdworks-wine-bin + pkgdesc = A powerful program that allows you to perform laser cutting engraving operations + pkgver = 8.01.18 + pkgrel = 1 + url = http://en.rd-acs.com/prod_view.aspx?TypeId=50105&Id=148 + arch = any + license = GPL + makedepends = unrar + depends = wine + noextract = add732140c983267.rar + source = http://0.0.0.0:8000/add732140c983267.rar + source = rdworks-wine-bin + md5sums = 3102d7217a72c9b95e4a93898aefc173 + md5sums = 699ab282b3fd4c73b7bc2aa845e5681e + +pkgname = rdworks-wine-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..76a9d4f61da3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Aiyion <aur@aiyionpri.me> +pkgname=rdworks-wine-bin +pkgver=8.01.18 +pkgrel=1 +pkgdesc='A powerful program that allows you to perform laser cutting engraving operations' +arch=('any') +url='http://en.rd-acs.com/prod_view.aspx?TypeId=50105&Id=148' +license=('GPL') +groups=() +depends=('wine' + 'winetricks') +makedepends=('unrar') +optdepends=('wine-mono: or take directx') +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("http://en.rd-acs.com/Private/Files/add732140c983267.rar" + "rdworks-wine-bin") +noextract=("add732140c983267.rar") +md5sums=('3102d7217a72c9b95e4a93898aefc173' + '29101780536e645ec479e49ead7266aa') + +prepare() { + unrar x add732140c983267.rar +} + +package() { + install -dm755 "$pkgdir"/usr/bin + install -dm755 "$pkgdir"/usr/share/rdworks-wine-bin + + install -Dm755 rdworks-wine-bin "$pkgdir"/usr/bin/rdworks-wine-bin + install -Dm755 RDWorksV8Setup8.01.18.exe "$pkgdir"/usr/share/rdworks-wine-bin/RDWorksV8Setup8.01.18.exe +} diff --git a/rdworks-wine-bin b/rdworks-wine-bin new file mode 100644 index 000000000000..d2cc12770a8f --- /dev/null +++ b/rdworks-wine-bin @@ -0,0 +1,33 @@ +#!/bin/sh + +export WINEPREFIX="$HOME/.rdworks-wine-bin" +export WINEARCH=win32 +export WINEDEBUG=fixme-all +export WINEDLLOVERRIDES="mshtml=" + +function setpath(){ + # PathExt + keyname="HKLM\System\CurrentControlSet\Control\Session Manager\Environment" + valuename="PATHEXT" + value="$(wine reg query "$keyname" -v "$valuename" | sed 's|\r||g' | awk '$1 == "PATHEXT" {print $3 ";."}')" + wine reg add "$keyname" /f /v "$valuename" /t REG_SZ /d "$value" + # Path + keyname="HKLM\System\CurrentControlSet\Control\Session Manager\Environment" + valuename="PATH" + value="$(wine reg query "$keyname" -v "$valuename" | sed 's|\r||g' | awk '$1 == "PATH" {print $3}')$(echo $(for i in $(echo $PATH | sed 's|:|\n|g') ; do echo -n \;$(winepath -w $i) ; done 2>/dev/null))" + wine reg add "$keyname" /f /v "$valuename" /t REG_SZ /d "$value" +} + +function setup(){ + mkdir -p `dirname $WINEPREFIX` + setpath + winetricks -q mfc42 cmd +} + +if [ ! -d "$WINEPREFIX" ] || [ "-s" = "$1" ] ; then + setup + wine "/usr/share/rdworks-wine-bin/RDWorksV8Setup8.01.18.exe" "`winepath -w "$@"`" +fi + +# Run the actual rdworks +wine "$WINEPREFIX/drive_c/RDWorksV8/RDWorksV8.exe" "`winepath -w "$@"`" |