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: e98398b756a7cc4aa3d4463fd025994a91c4acd2

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 5746dc1..19d28d3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,18 @@
-pkgbase = rpg2003-rtp
-	pkgdesc = RPG Maker 2003 Runtime Package (Japanese)
-	pkgver = 2003
-	pkgrel = 2
-	url = https://tkool.jp/products/rtp.html
-	arch = any
-	license = custom: commercial
-	makedepends = unshield
-	makedepends = unarchiver
-	makedepends = glibc
-	optdepends = easyrpg-player: game engine for using the RTP
-	noextract = 2003rtp.zip
-	source = https://tkool.jp/products/rtp/2003rtp.zip
-	sha256sums = d388b183cc3a8206db53f58db4ea88c6661c9cf289c03aea1bf9ccd425f49cd1
-
+generated-by = makedeb
 pkgname = rpg2003-rtp
-
+pkgbase = rpg2003-rtp
+pkgdesc = RPG Maker 2003 Runtime Package (Japanese)
+pkgrel = 0
+pkgver = 2003
+url = https://tkool.jp/products/rtp.html
+arch = all
+license = custom: commercial
+makedepends = unshield
+makedepends = convmv
+noextract = 2003rtp.zip
+optdepends = easyrpg-player: game engine for using the RTP
+source = https://tkool.jp/products/rtp/2003rtp.zip
+sha256sums = d388b183cc3a8206db53f58db4ea88c6661c9cf289c03aea1bf9ccd425f49cd1
+makedepends = unshield
+makedepends = convmv
+optdepends = easyrpg-player: game engine for using the RTP
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e7c89eb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+2003rtp.zip
+pkg
+rpg2003-rtp*
+src
diff --git a/PKGBUILD b/PKGBUILD
index abcd616..d9f912c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
-# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
-# Contributor: maz-1 <ohmygod19993 at gmail dot com>
-
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: carstene1ns (AUR) <arch carsten-teibes de> - http://git.io/ctPKG
+# Contributor: maz-1 (AUR) <ohmygod19993 at gmail dot com>
 pkgname=rpg2003-rtp
 pkgver=2003
-pkgrel=2
+pkgrel=0
 pkgdesc="RPG Maker 2003 Runtime Package (Japanese)"
-arch=('any')
+arch=('all')
 url="https://tkool.jp/products/rtp.html"
 license=('custom: commercial')
-makedepends=('unshield' 'unarchiver' 'glibc')
+makedepends=('unshield' 'convmv')
 optdepends=('easyrpg-player: game engine for using the RTP')
 source=("https://tkool.jp/products/rtp/2003rtp.zip")
 sha256sums=('d388b183cc3a8206db53f58db4ea88c6661c9cf289c03aea1bf9ccd425f49cd1')
@@ -16,14 +16,18 @@ noextract=('2003rtp.zip')
 
 prepare() {
   # cleanup
-  rm -rf "2003RTPセットアップ" RPG2003RTP rtp 2003
+  rm -rf rtp 2003
   # extract
-  unar -e ms932 2003rtp.zip
-  unar "2003RTPセットアップ"/RPG2003RTP.exe
-  unshield -e ms932 -d rtp x RPG2003RTP/data1.cab
-  mv rtp/"RPGツクール2003_ランタイムパッケージ" 2003
+  bsdtar --strip-components 1 --include='*.exe' -xf 2003rtp.zip
+  bsdtar --include='*.txt' -O -xf 2003rtp.zip > TOS-raw.txt
+  bsdtar -xf RPG2003RTP.exe
+  unshield -R -d rtp x data1.cab
   # convert text
-  iconv -f ms932 -t UTF-8 "2003RTPセットアップ/使用規約.txt" > "使用規約.txt"
+  convmv -f SHIFT-JIS -t UTF-8 -r --qfrom --notest rtp
+  iconv -f SHIFT-JIS -t UTF-8 TOS-raw.txt > TOS.txt
+  # adjust
+  mv rtp/"RPGツクール2003_ランタイムパッケージ" 2003
+  rm 2003/RTP/Harmony.dll
 }
 
 package() {
@@ -34,5 +38,5 @@ package() {
   find "$pkgdir"/usr/share/rtp -type d -exec chmod 0755 {} \;
   find "$pkgdir"/usr/share/rtp -type f -exec chmod 0644 {} \;
   # license
-  install -Dm0644 "使用規約.txt" -t "$pkgdir"/usr/share/licenses/$pkgname
+  install -Dm0644 "TOS.txt" -t "$pkgdir"/usr/share/doc/$pkgname
 }