change to new opsi builder

This commit is contained in:
Mario Fetka 2013-03-11 21:35:20 +01:00
parent 8fe5c6ccd2
commit 0e67d55d07
4 changed files with 11 additions and 10 deletions

View File

@ -1 +0,0 @@
1469dd62bd69a7a8a9d2372c41645277b8a271f1 /usr/portage/distfiles/12818.gif

View File

@ -0,0 +1 @@
1746d5dc1dd6ab293db87f77734186f80aaeef98 /home/mario/.opsi-dist-cache/font.ocrab-0.2//220px-OCR-A_SP.svg.png

View File

@ -4,7 +4,7 @@
; credits: http://www.opsi.org/credits/ ; credits: http://www.opsi.org/credits/
[Actions] [Actions]
requiredWinstVersion >= "4.10.8.6" requiredWinstVersion >= "4.11.2.6"
DefVar $ProductId$ DefVar $ProductId$
DefVar $MinimumSpace$ DefVar $MinimumSpace$
@ -37,11 +37,10 @@ Set $LogDir$ = "%SystemDrive%\tmp"
;$ProductId$ should be the name of the product in opsi ;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts, ; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator ; no white space use '-' as a seperator
Set $ProductId$ = "font.ocrab"
Set $MinimumSpace$ = "10 MB" Set $MinimumSpace$ = "10 MB"
; the path were we find the product after the installation ; the path were we find the product after the installation
Set $InstallDir32$ = "%ProgramFiles32Dir%\Ocr" Set $InstallDir32$ = "%ProgramFiles32Dir%\OcrAB"
Set $InstallDir64$ = "%ProgramFiles64Dir%\Ocr" Set $InstallDir64$ = "%ProgramFiles64Dir%\OcrAB"
; ---------------------------------------------------------------- ; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$)) if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
@ -50,12 +49,12 @@ if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
; Stop process and set installation status to failed ; Stop process and set installation status to failed
else else
comment "Show product picture" comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $NAME$
comment "installing" comment "installing"
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only") if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
Message "Installing " + $ProductId$ + " 32 Bit..." Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..."
comment "Copy files" comment "Copy files"
Files_install_32 /32Bit Files_install_32 /32Bit
comment "Start setup program" comment "Start setup program"
@ -68,7 +67,7 @@ else
endif endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only")) if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
Message "Installing " + $ProductId$ + " 64 Bit..." Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
comment "Copy files" comment "Copy files"
Files_install_64 /64Bit Files_install_64 /64Bit
comment "Start setup program" comment "Start setup program"

View File

@ -3,6 +3,8 @@
############################ ############################
VENDOR="ansuz.sooke.bc.ca" VENDOR="ansuz.sooke.bc.ca"
PN="font.ocrab" PN="font.ocrab"
NAME="OCR Free Font Version A & B"
DESCRIPTION="OCR Free Font Version A & B"
VERSION="0.2" VERSION="0.2"
RELEASE="3" RELEASE="3"
PRIORITY="0" PRIORITY="0"
@ -14,8 +16,8 @@ TYPE="public"
# #
DL_FILE[0]="12818.gif" DL_FILE[0]="220px-OCR-A_SP.svg.png"
DL_SOURCE[0]="http://image.linotype.com/samples/text/12818.gif" DL_SOURCE[0]="http://upload.wikimedia.org/wikipedia/commons/thumb/9/93/OCR-A_SP.svg/220px-OCR-A_SP.svg.png"
DL_FILE[1]="ocr-${VERSION}.zip" DL_FILE[1]="ocr-${VERSION}.zip"
DL_SOURCE[1]="http://jaist.dl.sourceforge.jp/tsukurimashou/56948/ocr-${VERSION}.zip" DL_SOURCE[1]="http://jaist.dl.sourceforge.jp/tsukurimashou/56948/ocr-${VERSION}.zip"