summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01924acc72407007f167cc4ff97bd42e8f18b0af (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
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Contributor: Mopi <mopi@dotslashplay.it>

pkgbase=play.it-git
pkgname=(play.it-git play.it-games-git)
pkgver=2.22.2.r0.gc95b1519
pkgrel=1
arch=('any')
url="https://wiki.dotslashplay.it"
license=('BSD')
source=('git+https://forge.dotslashplay.it/play.it/scripts.git'
        'git+https://forge.dotslashplay.it/play.it/games.git')
sha1sums=('SKIP' 'SKIP')

pkgver() {
  cd scripts
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd scripts
  make
}

package_play.it-git() {
  pkgdesc="Easy way to install games on Linux - git version"
  depends=('bash')
  optdepends=(
    'imagemagick: to convert images between formats'
    'libarchive: to extract various archive formats'
    'icoutils: to manipulate Windows icon files'
    'innoextract: to extract some Windows installers'
    'unzip: to extract some archives'
  )
  provides=('play.it')
  conflicts=('play.it')

  cd scripts
  make DESTDIR="$pkgdir"/ prefix=/usr bindir=/usr/bin datadir=/usr/share install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

package_play.it-games-git() {
  pkgdesc="Easy way to install games on Linux, game scripts - git version"
  depends=('play.it-git')
  provides=('play.it-games')
  conflicts=('play.it-games')

  cd games
  make DESTDIR="$pkgdir"/ prefix=/usr bindir=/usr/bin datadir=/usr/share install
}