summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2178a496713a592f0d4ed82de37e4131b60c9e0 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=bluez-tools-git
pkgver=r127.gf653217
pkgrel=1
pkgdesc="A set of tools to manage bluetooth devices"
arch=('i686' 'x86_64')
url="https://github.com/khvzak/bluez-tools"
license=('GPL')
depends=('glibc' 'bluez')
makedepends=('git')
provides=('bluez-tools')
conflicts=('bluez-tools')
source=("git+https://github.com/khvzak/bluez-tools.git")
sha256sums=('SKIP')


pkgver() {
  cd "bluez-tools"

  _rev=$(git rev-list --count --all)
  _hash=$(git rev-parse --short HEAD)
  printf "r%s.g%s" "$_rev" "$_hash"
}

build() {
  cd "bluez-tools"

  ./autogen.sh \
    --prefix="/usr"
  make
}

check() {
  cd "bluez-tools"

  make check
}

package() {
  cd "bluez-tools"

  make DESTDIR="$pkgdir" install
}