# Maintainer: Alexej Magura # Contributor: Swen Simon # Contributor: Raphaƫl Doursenaud # pkgname=epsxe _pkgname=ePSXe pkgver=2.0.2 pkgrel=5 pkgdesc="Enhanced PSX emulator" url="http://epsxe.com" arch=('i686' 'x86_64') #depends=(gtk2 sdl_ttf ncurses5-compat-libs libtinfo-5 libcurl-compat) #depends_i686+=(gtk3 sdl_ttf libtinfo) #depends_x86_64+=(lib32-gtk3 lib32-ncurses lib32-libxt lib32-sdl_ttf lib32-alsa-lib lib32-libtinfo) depends=(gtk3 sdl_ttf libtinfo libcurl-compat) license=('unknown') install=${pkgname}.install options=(!strip) source=(${pkgname}.desktop ${pkgname}.png ${pkgname}.sh) md5sums=('f4bdb7ccbebc31f818d34198a5a32e29' 'eb0c46b8ae1355c589792f6be1835e47' '46c247cdf67ceb4f64813ee28290badc') if [[ $CARCH == "x86_64" ]]; then source+=("http://www.epsxe.com/files/ePSXe${pkgver//./}linux_x64.zip") md5sums+=('a6e92844922182c9f03343ab3e54865a') else source+=("http://www.epsxe.com/files/ePSXe${pkgver//./}linux.zip") md5sums+=('787826ee6b0f95ea2df511dd7fd29abd') fi package () { srcpath="${srcdir}/${_pkgname}${pkgver//./}linux" binary="${pkgname}" if [[ $CARCH == "x86_64" ]]; then srcpath+="_x64" binary+="_x64" fi cd "${srcpath}" # install -m775 -g games -d "${pkgdir}/opt/${pkgname}/"{plugins,bios,memcards,cfg,cdimages,cheats,patches,sstates,snap} install -d "${pkgdir}"/usr/{share/doc/"${pkgname}",lib} find docs -name 'e???e_*.txt' -execdir install -m 644 -t ${pkgdir}/usr/share/doc/${pkgname} \{\} + # find . -name '*.cht' -execdir "install -Dm 644 -t \${pkgdir}/opt/${pkgname}/${pkgver}/cheats\"" \{\} + install -Dm 755 "${binary}" "${pkgdir}/opt/${pkgname}/${pkgname}" # install -Dm 644 keycodes.lst "${pkgdir}/opt/${pkgname}/keycodes.lst" cd "${srcdir}" install -Dm 755 ${pkgname}.sh "${pkgdir}/usr/bin/${pkgname}" install -Dm 644 "${srcdir}/epsxe.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" install -Dm 644 "${srcdir}/epsxe.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" ln -sf "$HOME/.${pkgname}rc" -T "${pkgdir}/opt/${pkgname}/.${pkgname}rc" # libtinfo and ncurses crap ln -s /usr/lib/libtinfo.so.6 "$pkgdir"/opt/"$pkgname"/libncurses.so.5 ln -s /usr/lib/libncursesw.so.6 "$pkgdir"/opt/"$pkgname"/libtinfo.so.5 }