summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba33ba9baf1b73ca83c0c1d80e4dc28f0099ea70 (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
#Maintainer: Fijxu <fijxu at nadeko dot net>

pkgname=spcplay
pkgver=2.20.1.8272
pkgrel=1
pkgdesc="SNES SPC700 Player"
arch=('i686' 'x86_64')
url="https://github.com/dgrfactory/spcplay"
license=('GPL')
depends=('wine')
makedepends=('unzip' 'gendesk')
source=(
  "https://github.com/dgrfactory/spcplay/releases/download/$pkgver/$pkgname-$pkgver.zip"
  'spcplay'
	'spcplay.png'
  'x-spc.xml'
)
noextract=("$pkgname-$pkgver.zip")
sha256sums=(
  '4693c72a9ff933dcf1644d69504aa0c09286fabdbc4e415e30e171fc7047160f'
  '9dbe7462b0901e19f819c8e16dab24e88a013a2f1575fc50fe7c7b7c5eb04f82'
  '6f4127c931c5707c3a4cf1da81cd29c38f336cb3c7fc40f366681cb475217c98'
  'fd1a7c4c7f7da7fb9a5310bdfe06e1fb7feb22b51b2e23cd78debba1ea6b92fe'
)

prepare() {
  cd "$srcdir"
  mkdir -p "$pkgname-$pkgver"
  unzip -o -d "$pkgname-$pkgver" "$pkgname-$pkgver.zip"

  gendesk -n -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" \
    --name='SPCPlay' \
    --mimetype='audio/x-spc' \
    --categories 'Audio;Sequencer;Midi;Music;AudioVideo;'
}

package() {
  mkdir -p "$pkgdir/usr/share"
  cp -r "$srcdir/$pkgname-$pkgver" "$pkgdir/usr/share/spcplay"
  install -Dm755 "$srcdir/spcplay" "$pkgdir/usr/bin/spcplay"
  install -Dm644 "$srcdir/spcplay.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
  install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  install -Dm644 "$srcdir/x-spc.xml" "$pkgdir/usr/share/mime/application/x-spc.xml"
}