# Maintainer: Whovian9369 # Contributor: mock pkgname=clrmamepro pkgver=4.034 pkgrel=1 pkgdesc="A ROM manager for MAME." arch=('x86_64' 'i686') url="https://mamedev.emulab.it/clrmamepro/" license=('custom') depends=('wine') makedepends=('icoutils') source=("https://mamedev.emulab.it/clrmamepro/binaries/cmp${pkgver//./}_32.zip" "clrmamepro" "clrmamepro.desktop") sha256sums=('0f83ccbdefae39d7526a389f9b52193520d915012cf398b3a908ef117ce2488d' '466f1cd863e85915f8355463a1062e394296228b17cbdfe101357b3266b988f5' '8d92a074639a43cb5d7ed69df999d059dd81fca9f3967a58873db0acafb0d95b') build() { wrestool -x -n 500 -o . cmpro.exe icotool -x -o . cmpro.exe_14_500_1031.ico } package() { install -Dm644 -t "${pkgdir}/usr/share/clrmamepro/" "7z_32.dll" \ "engine.cfg" \ "unrar.dll" \ "update.dll" \ "cmpro.exe" \ "stats.ini" \ "urls.ini" \ "version.ini" \ "setformat.xml" install -Dm755 "clrmamepro" "${pkgdir}/usr/bin/clrmamepro" install -Dm644 "clrmamepro.desktop" "${pkgdir}/usr/share/applications/clrmamepro.desktop" install -Dm644 "cmpro.exe_14_500_1031_4_16x16x32.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/clrmamepro.png" install -Dm644 "cmpro.exe_14_500_1031_5_32x32x32.png" "${pkgdir}/usr/share/icons/hicolor/32x32/apps/clrmamepro.png" install -Dm644 "cmpro.exe_14_500_1031_6_48x48x32.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/clrmamepro.png" install -Dm644 "copyright.txt" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT" }