summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77a992c4b8438ee6b4d52732cc0749501c9d9ec6 (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
# Maintainer: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
_pkgname=afx2tool-linux
pkgname=$_pkgname-git
pkgver=1.0.r0.g0c3bfb6
pkgrel=1
pkgdesc="Linux CLI tool to backup and restore Axe-FX II data"
arch=('any')
url="https://github.com/TieDyedDevil/afx2tool-linux"
license=('MIT')
depends=('alsa-utils' 'afx2usb-linux')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
md5sums=('SKIP')

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

package() {
  cd "$_pkgname"
  install -Dm755 afx2-tool "$pkgdir/usr/bin/afx2-tool"

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: