makedeb


rpg2003-rtp 2003-1


RPG Maker 2003 Runtime Package (Japanese)

Click here to go back to the commit logs for rpg2003-rtp.

Commit:


Hash: 609b1375301a794d1396c29c8bafc587e73fa360

Message: Use official package

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 25349a1..98dc189 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,12 @@ pkgbase = rpg2003-rtp
 	url = http://www.rpgmakerweb.com/download/additional/run-time-packages
 	arch = any
 	license = custom: commercial
-	makedepends = p7zip
+	makedepends = unarchiver
+	makedepends = unshield-git
+	makedepends = convmv
+	noextract = 2003rtp.zip
+	source = http://tkool.jp/assets/files/2003rtp.zip
+	md5sums = 8b15ba45ae77cf06b59bff2ead633c4c
 
 pkgname = rpg2003-rtp
 
diff --git a/PKGBUILD b/PKGBUILD
index 37efcd7..2f976f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,21 +6,21 @@ pkgdesc="RPGMaker 2003 Runtime Package"
 url='http://www.rpgmakerweb.com/download/additional/run-time-packages'
 arch=('any')
 license=('custom: commercial')
-makedepends=('p7zip')
-
-prepare() {
-  cd "$srcdir/.."
-  file_name=2003rtp.7z
-  [ -f "$file_name" ] && checksum=`md5sum "$file_name" | grep -oP '[0-9a-z]+' | head -n 1` || true
-  [ "z""$checksum" = "z""20fb5164724c2fe6c44a79df3cc94e22" ] || \
-    ( rm -f "$file_name" ; \
-    wget --no-check-certificate "http://pan.plyz.net/d.asp?u=118488466&p=$file_name" -O "$file_name" )
-  [ -f "$srcdir/$file_name" ] || ln -s "../$file_name" "$srcdir/$file_name"
-  cd "${srcdir}"
-  7z x $file_name
-}
+makedepends=('unarchiver' 'unshield-git' 'convmv')
+source=("http://tkool.jp/assets/files/2003rtp.zip")
+md5sums=('8b15ba45ae77cf06b59bff2ead633c4c')
+noextract=2003rtp.zip
 
 package() {
+  cd "$srcdir"
+  unar -encoding SHIFT-JIS 2003rtp.zip
+  cd "2003RTPセットアップ"
+  unar RPG2003RTP.exe
+  cd RPG2003RTP
+  unshield x data1.cab
+  convmv -r -f SHIFT-JIS -t utf-8 --notest .
+  
   mkdir -p "$pkgdir/opt/"
-  cp -r "$srcdir/RTP" "$pkgdir/opt/$pkgname"
+  cp -r "${srcdir}/2003RTPセットアップ/RPG2003RTP/RPGツクール2003_ランタイムパッケージ/RTP" "$pkgdir/opt/$pkgname"
+  install -Dm644 "$srcdir/2003RTPセットアップ/使用規約.txt" "$pkgdir/opt/$pkgname/使用規約.txt"
 }