diff options
author | Carsten Teibes | 2021-04-11 21:42:50 +0200 |
---|---|---|
committer | Carsten Teibes | 2021-04-11 21:42:50 +0200 |
commit | 46185e517325a44447cf1f6f3499b28078c3d1e3 (patch) | |
tree | b72e351d1fabb0c8f84d217463c626df79f70213 | |
parent | e840a063a460fe9f507c9e53e74d0f0d6a747904 (diff) | |
download | aur-rpg2003-rtp.tar.gz |
[upd] new urls
[fix] extract with right encoding instead of renaming afterwards
[fix] no more need to set environment variables
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 31 | ||||
-rw-r--r-- | rpg2003-rtp.sh | 10 |
3 files changed, 18 insertions, 35 deletions
@@ -1,19 +1,17 @@ pkgbase = rpg2003-rtp pkgdesc = RPG Maker 2003 Runtime Package (Japanese) pkgver = 2003 - pkgrel = 1 - url = https://tkool.jp/support/download/rpg2003/rtp + pkgrel = 2 + url = https://tkool.jp/products/rtp.html arch = any license = custom: commercial - makedepends = unshield-git - makedepends = convmv + makedepends = unshield + makedepends = unarchiver makedepends = glibc optdepends = easyrpg-player: game engine for using the RTP noextract = 2003rtp.zip - source = https://tkool.jp/assets/files/2003rtp.zip - source = rpg2003-rtp.sh + source = https://tkool.jp/products/rtp/2003rtp.zip sha256sums = d388b183cc3a8206db53f58db4ea88c6661c9cf289c03aea1bf9ccd425f49cd1 - sha256sums = bbf30c73a2a9933c930dc306b01e4dc70790f450567d319e0e0f1602f2e863cd pkgname = rpg2003-rtp @@ -3,30 +3,27 @@ pkgname=rpg2003-rtp pkgver=2003 -pkgrel=1 +pkgrel=2 pkgdesc="RPG Maker 2003 Runtime Package (Japanese)" arch=('any') -url="https://tkool.jp/support/download/rpg2003/rtp" +url="https://tkool.jp/products/rtp.html" license=('custom: commercial') -makedepends=('unshield-git' 'convmv' 'glibc') +makedepends=('unshield' 'unarchiver' 'glibc') optdepends=('easyrpg-player: game engine for using the RTP') -source=("https://tkool.jp/assets/files/2003rtp.zip" - "$pkgname.sh") -sha256sums=('d388b183cc3a8206db53f58db4ea88c6661c9cf289c03aea1bf9ccd425f49cd1' - 'bbf30c73a2a9933c930dc306b01e4dc70790f450567d319e0e0f1602f2e863cd') +source=("https://tkool.jp/products/rtp/2003rtp.zip") +sha256sums=('d388b183cc3a8206db53f58db4ea88c6661c9cf289c03aea1bf9ccd425f49cd1') noextract=('2003rtp.zip') prepare() { - # extract - bsdtar --strip-components 1 --include='*.exe' -xf 2003rtp.zip - bsdtar --include='*.txt' -O -xf 2003rtp.zip > TOS-sjis.txt - bsdtar -xf RPG2003RTP.exe - unshield -R -d rtp x data1.cab # cleanup - rm -rf rtp/_* - convmv -f SHIFT-JIS -t UTF-8 -r --qfrom --notest rtp - iconv -f SHIFT-JIS -t UTF-8 TOS-sjis.txt > TOS.txt + rm -rf "2003RTPセットアップ" RPG2003RTP 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 + # convert text + iconv -f ms932 -t UTF-8 "2003RTPセットアップ/使用規約.txt" > "使用規約.txt" } package() { @@ -36,8 +33,6 @@ package() { # sane permissions find "$pkgdir"/usr/share/rtp -type d -exec chmod 0755 {} \; find "$pkgdir"/usr/share/rtp -type f -exec chmod 0644 {} \; - # export environment variables - install -Dm0755 $pkgname.sh "$pkgdir"/etc/profile.d/$pkgname.sh # license - install -Dm0644 TOS.txt "$pkgdir"/usr/share/licenses/$pkgname/TOS.txt + install -Dm0644 "使用規約.txt" -t "$pkgdir"/usr/share/licenses/$pkgname } diff --git a/rpg2003-rtp.sh b/rpg2003-rtp.sh deleted file mode 100644 index 41b6ce14fb5a..000000000000 --- a/rpg2003-rtp.sh +++ /dev/null @@ -1,10 +0,0 @@ -RTP=/usr/share/rtp/2003 - -if [ -z "$RPG2K3_RTP_PATH" ]; then - RPG2K3_RTP_PATH=$RTP -else - # add to end of path list - RPG2K3_RTP_PATH=${RPG2K3_RTP_PATH}:$RTP -fi - -export RPG2K3_RTP_PATH |