summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8a37ddc118381b56bff330d634e3a4e17545e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Aria Moradi <aria.moradi007 at gmail dot com>

pkgname=galaxybuds-batterylevel-git
pkgver=r28.e01596e
pkgrel=1
pkgdesc="Simple python script to read battery values and the current wearing status from the Samsung Galaxy Buds, Buds+, Buds Live, and Buds Pro."
arch=(any)
url="https://github.com/ThePBone/GalaxyBuds-BatteryLevel"
license=('MIT')
depends=(python python-pybluez)
makedepends=()
source=('GalaxyBuds-BatteryLevel::git+https://github.com/ThePBone/GalaxyBuds-BatteryLevel.git')
md5sums=('SKIP')

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

package() {
	install -D $srcdir/GalaxyBuds-BatteryLevel/buds_battery.py $pkgdir/usr/bin/galaxybuds-batterylevel
}