-
-
Save oech3/a25e797967b6eb836d1062ca656bf1c0 to your computer and use it in GitHub Desktop.
PKGBUILD-rpg200x-rtp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG | |
pkgname=rpg2000-rtp | |
pkgver=201906 | |
pkgrel=3 | |
pkgdesc="RPG Maker 2000 Runtime Package (Japanese)" | |
arch=('any') | |
url="https://tkool.jp/products/rtp.html" | |
license=('custom: commercial') | |
makedepends=('unshield' 'glibc' 'libarchive') | |
source=("https://tkool.jp/products/rtp/2000rtp.zip" | |
"https://tkool.jp/products/rtp/RTP_patchk_190612.zip") | |
sha256sums=('c130f0078c0d6ecc3404f94af8258e4557ab85c3b204397c7f21dbc57efeef8e' | |
'3041c57af04675b990da5709928fe7794cac2e4b21f6b526a81d310b353db3ad') | |
noextract=('2000rtp.zip' 'RTP_patchk_190612.zip') | |
options=(!strip) #build time optimization | |
prepare() { | |
# cleanup | |
rm -rf "RTPセットアップ" RPG2000RTP rtp 2000 RTP_patchk_190612 | |
# extract | |
bsdunzip -O cp932 2000rtp.zip | |
bsdunzip -O cp932 RTP_patchk_190612.zip | |
bsdtar -xf "RTPセットアップ"/RPG2000RTP.exe | |
unshield -e ms932 -d rtp x data1.cab | |
mv rtp/"RPGツクール2000_ランタイムパッケージ" 2000 | |
# remove dll | |
rm 2000/RTP/Harmony.dll | |
# convert text | |
iconv -f ms932 -t UTF-8 "RTPセットアップ/使用規約.txt" > "使用規約.txt" | |
iconv -f ms932 -t UTF-8 RTP_patchk_190612/"RTPの修正ファイルについて.txt" > "RTPの修正ファイルについて.txt" | |
# apply patch | |
mv RTP_patchk_190612/"モンスター.png" 2000/RTP/FaceSet | |
mv RTP_patchk_190612/"主人公3.png" 2000/RTP/CharSet | |
mv RTP_patchk_190612/{"基本","ダンジョン","船","内装","外観"}.png 2000/RTP/ChipSet | |
} | |
package() { | |
# data | |
install -Dm0644 2000/RPG2000.ico "$pkgdir"/usr/share/rtp/RPG2000.ico | |
cp -r 2000/RTP "$pkgdir"/usr/share/rtp/2000 | |
# license | |
install -Dm0644 "使用規約.txt" -t "$pkgdir"/usr/share/licenses/$pkgname | |
# patch doc | |
install -Dm0644 "RTPの修正ファイルについて.txt" -t "$pkgdir"/usr/share/doc/$pkgname | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG | |
# Contributor: maz-1 <ohmygod19993 at gmail dot com> | |
pkgname=rpg2003-rtp | |
pkgver=2003 | |
pkgrel=3 | |
pkgdesc="RPG Maker 2003 Runtime Package (Japanese)" | |
arch=('any') | |
url="https://tkool.jp/products/rtp.html" | |
license=('custom: commercial') | |
makedepends=('unshield' 'glibc' 'libarchive') | |
source=("https://tkool.jp/products/rtp/2003rtp.zip") | |
sha256sums=('d388b183cc3a8206db53f58db4ea88c6661c9cf289c03aea1bf9ccd425f49cd1') | |
noextract=('2003rtp.zip') | |
options=(!strip) #build time optimization | |
prepare() { | |
# cleanup | |
rm -rf "2003RTPセットアップ" RPG2003RTP rtp 2003 | |
# extract | |
bsdunzip -O cp932 2003rtp.zip | |
bsdtar -xf "2003RTPセットアップ"/RPG2003RTP.exe | |
unshield -e ms932 -d rtp x data1.cab | |
mv rtp/"RPGツクール2003_ランタイムパッケージ" 2003 | |
# remove dll | |
rm 2003/RTP/Harmony.dll | |
# convert text | |
iconv -f ms932 -t UTF-8 "2003RTPセットアップ/使用規約.txt" > "使用規約.txt" | |
} | |
package() { | |
# data | |
install -d "$pkgdir"/usr/share/rtp | |
cp -r 2003/RTP "$pkgdir"/usr/share/rtp/2003 | |
# license | |
install -Dm0644 "使用規約.txt" -t "$pkgdir"/usr/share/licenses/$pkgname | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment