summaryrefslogtreecommitdiff
path: root/pcr/mednafen-server/PKGBUILD
blob: 0db1b10680484b290e93bd6af90215a13a21ca31 (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
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>

pkgname=mednafen-server
_pkgname=${pkgname%-server}
pkgver=0.5.0
pkgrel=2
pkgdesc='A server multi-system gaming emulator'
url=http://$_pkgname.sourceforge.net/
license=GPL2
arch=(
  i686
  x86_64
  mips64el
)
backup=etc/$pkgname/standard.conf
source=(
  http://downloads.sourceforge.net/project/$_pkgname/${_pkgname^}-Server/$pkgver/$pkgname-$pkgver.tar.gz
  $pkgname.service
)
sha512sums=(
  700b2021e5085761b90bb5ee802ff9ccded3cdade76682fe9faa98ebbb0653c9b00baea5baa1c486f850bad606aae33a88e4d9486015babb210648aa0cd4542d
  cd3d19b789ec7f62c4b8f5fe0f93e7836fab5406a3416434701caf6404cce02c7223dcb8b82bd1e4b00bdcf4df623f0cd44f850a7f79a7be73e04c0804972700
)

build() {
  cd $srcdir/$pkgname
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname
  make DESTDIR=$pkgdir install
  install -Dm644 standard.conf            $pkgdir/etc/$pkgname/standard.conf
  install -Dm644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}