summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e653fb3fb52f0ccc2c1861e7258da0abd530da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Maintainer: Alexej Magura <agm2819*gmail*>
# Contributor: Swen Simon <swsimon at gmail dot com>
# Contributor: Raphaƫl Doursenaud <rdoursenaud@gmail.com>
#

# XXX maybe bin32 should be combined with this and we should use pkgbase?
pkgname=epsxe
_pkgname=ePSXe
pkgver=2.0.5
pkgrel=23
pkgdesc="Enhanced PSX emulator (64-bit)"
url="http://epsxe.com"
arch=('x86_64')
depends=(gtk3
         libxt
         sdl_ttf
         libcurl-compat
         libcanberra
         bash
         'ncurses>=6.0+20170902-2'
         openssl-1.0
         ncurses5-compat-libs
        )
license=('unknown')
install=${pkgname}.install
options=(!strip)
source=(${pkgname}.desktop
        ${pkgname}.png
        ${pkgname}.sh
        "http://www.epsxe.com/files/${_pkgname}${pkgver//./}linux_x64.zip"
       )
md5sums=('aeb34e2ca34f968630ca133ea821c61c'
         'eb0c46b8ae1355c589792f6be1835e47'
         '8d47875ba4f51943cdb6e09c2f25e4b5'
         '79fefeb4bff26bf1d374befb35b390df'
        )

package()
{
 _binary="${pkgname}_x64"

  cd "${srcdir}"
  install -d "${pkgdir}"/usr/{share/doc/"${pkgname}",lib}

  find docs -name 'e???e_*.txt' -execdir install -m 644 -t ${pkgdir}/usr/share/doc/${pkgname} \{\} +

  install -Dm 755 "${_binary}" "${pkgdir}/opt/${pkgname}/${pkgname}"

  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"
}