summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1db3d39d8e3f34d9ff431ade4e131a84f243b296 (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
# Maintainer: Dmitriy Fomichev <xomachiner@gmail.com>

pkgname=('steamforwarder-git')
_pkgname=SteamForwarder
pkgdesc="Tool that allows interaction between windows games under wine and the linux steam. (Cutting edge experimental features)"
pkgver=r195.73b671f
pkgrel=1
arch=('x86_64' 'i686')
url="https://github.com/xomachine/SteamForwarder"
license=('MIT')
depends=('python' 'steam' 'nim>=0.18.0' 'binutils' 'wine')
optdepends=('steamcmd')
makedepends=()
provides=('steamforwarder')
source=("git+https://github.com/xomachine/SteamForwarder.git#branch=devel")
sha256sums=('SKIP')
options=(!strip)

pkgver() {
  cd "$srcdir/$_pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "$srcdir/${_pkgname}"
  make tools
  # Touch required to avoid signatures.txt rebuilding when make install
  touch signatures.txt
  make precompile
}

package() {
  cd "$srcdir/${_pkgname}"
  make install PREFIX="/usr" DESTDIR="${pkgdir}"
}