summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 877e2d5d62d4b71e9b7bdfd80d126c0764010d3a (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
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG

pkgname=arcade-history-dat
pkgver=155
pkgrel=1
pkgdesc="Arcade History Database file to use for Emulators and Frontends with more than 36,000 entries!"
arch=('any')
url="http://www.arcade-history.com"
license=('custom')
optdepends=('raine: for use in raine'
            'qmc2: for use in qmc2')
source=("$url/dats/history$pkgver.7z")
sha256sums=('05e8bec9c2f3f1747e4f5bf772a68289191c1e4d3ec9938d8d806056d8a4aab6')

package() {
  install -Dm644 history.dat "$pkgdir"/usr/share/$pkgname/history.dat

  # symlink for use in raine
  install -d "$pkgdir"/usr/share/raine
  ln -s /usr/share/$pkgname/history.dat "$pkgdir"/usr/share/raine/history.dat

  # TODO: where to put it for other emulators/frontends?

  # license
  install -d "$pkgdir"/usr/share/licenses/$pkgname
  sed '/$end/,$d' history.dat > "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}