summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1521e2cf87e318be295982a2ee15025e75cc4ff (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=2
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=$pkgver")
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
}