summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f7934d6c8c81b8989f07fe1f9018c4adafb891e (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
# Maintainer: Joshua Petitma <joshua@petit.dev>

_pkgname=rofi-mixer
pkgname="${_pkgname}-git"
pkgver=r2.d903c33
pkgrel=1
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/joshpetit/rofi-mixer'
license=('GPL-3.0')
depends=('rofi' 'pipewire-pulse')
makedepends=('git')
source=("git+https://github.com/joshpetit/rofi-mixer.git")
md5sums=('SKIP')

prepare() {
  cd "${_pkgname}"
}

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

package() {
  cd "${_pkgname}"
  mkdir -p "${pkgdir}/opt/"

  install -D -m 755 ./src/rofi-mixer "${pkgdir}/usr/bin/rofi-mixer"
  install -D -m 755 ./src/rofi-mixer.py "${pkgdir}/usr/bin/rofi-mixer.py"
  install -D -m 644 ./LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" 
}