summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b1c25b8b91ad5ae217281afe31317e812d9af79 (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
# Maintainer: Tomasz Pakula <forest10pl@gmail.com>
_pkgname=protopedal
pkgname=protopedal-git
provides=($_pkgname)
conflicts=($_pkgname)
pkgver=0.1
pkgrel=3
pkgdesc="Compatibility tool for sim racing pedals and force feedback steering wheels"
arch=('x86_64')
url="https://gitlab.com/openirseny/protopedal/"
license=('EUPL')
depends=()
makedepends=(
  git
  gcc
  glibc
  make
)
source=(git+https://gitlab.com/openirseny/protopedal)
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/^release.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$srcdir/$_pkgname"
  git checkout master
}

build() {
  export CFLAGS=""
  export CXXFLAGS="${CFLAGS}"
  cd "$srcdir/$_pkgname"
  make all
}

package() {
  install -D -m755 "$srcdir/$_pkgname/protopedal" "$pkgdir/usr/bin/protopedal"
}