summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9c7d8725fa650cf7132f33c8e04003d62c4f380 (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
# Maintainer: Olegs Jeremejevs <olegs@jeremejevs.com>

_pkgname=rofi-bluetooth
pkgname="${_pkgname}-git"
pkgver=r18.3b85658
pkgrel=3
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/ClydeDroid/rofi-bluetooth'
license=('GPL-3.0')
depends=('rofi' 'bluez-utils')
makedepends=('git')
source=("${_pkgname}::git+https://github.com/ClydeDroid/rofi-bluetooth.git")
md5sums=('SKIP')

prepare() {
  cd "${_pkgname}"
  sed -i 's/rofi_command=.*/rofi_command="rofi -dmenu -p"/' rofi-bluetooth
}

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
}