blob: befa85396a360a8f235fe2d3b592b7c9a2282fe4 (
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
|
# Maintainer: Bardia Moshiri <fakeshell@bardia.tech>
pkgname='batman'
pkgver=0.37
pkgrel=1
pkgdesc="A battery management service and program for Linux phones"
arch=(any)
url="https://github.com/FakeShell/batman"
license=('GPLv2')
depends=('yad' 'wlr-randr' 'upower' 'bash')
makedepends=('git' 'tar')
provides=('batman')
source=('https://github.com/FakeShell/batman/releases/download/batman/batman.tar.gz')
md5sums=('SKIP')
prepare() {
tar -xf batman.tar.gz
rm -f batman.tar.gz
}
package() {
cd "$pkgname"
install -Dm755 ./batman "$pkgdir/usr/bin/batman"
install -Dm755 ./batman-gui "$pkgdir/usr/bin/batman-gui"
install -Dm755 ./governor "$pkgdir/usr/bin/governor"
install -Dm644 ./config "$pkgdir/var/lib/$pkgname/config"
install -Dm644 ./batman.service "$pkgdir/usr/lib/systemd/system/batman.service"
install -Dm644 ./batman.png "$pkgdir/usr/share/icons/batman.png"
install -Dm644 ./batman-gui.desktop "$pkgdir/usr/share/applications/batman-gui.desktop"
echo
echo
echo -------------------------------------------------------------
echo 'do systemctl enable batman and reboot to finish the installation'
echo -------------------------------------------------------------
echo
echo
}
|