summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fdf80e9f086d4a9686746b7b1447511dcad6ad4 (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: Alec Mev <alec@mev.earth>

_pkgname=rofi-bluetooth
pkgname="${_pkgname}-git"
pkgver=r33.9d91c04
pkgrel=2
pkgdesc='A script that generates a rofi menu that uses bluetoothctl to connect to bluetooth devices and display status info'
arch=('any')
url='https://github.com/nickclyde/rofi-bluetooth'
license=('GPL-3.0')
depends=(
  'bc'
  'bluez-utils'
  'rofi'
)
makedepends=('git')
source=("${_pkgname}::git+https://github.com/nickclyde/rofi-bluetooth.git")
md5sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${_pkgname}"
  install -D -m 755 -t "${pkgdir}/usr/bin/" rofi-bluetooth
  install -D -m 644 -t "${pkgdir}/usr/share/licenses/${_pkgname}/" LICENSE
}