blob: e3e1af4fa07d09a592daa01594fcc876e4ff9f5f (
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: nbebaw
pkgname=boostchanger-py
pkgver=0.1
pkgrel=4
pkgdesc="Tray application to controlling CPU Turbo boost"
arch=('any')
url="https://github.com/nbebaw/boostchanger-py"
license=('MIT')
makedepends=('python' 'git' 'tar')
source=("https://github.com/nbebaw/boostchanger-py/releases/download/v$pkgver.$pkgrel/boost_changer-$pkgver.$pkgrel.tar.gz")
md5sums=('SKIP')
prepare() {
pkgverOLD=0.1.3
if [ -d ${pkgdir}/opt/boostchanger-v$pkgver.$pkgrel ]; then
rm -r ${pkgdir}/opt/boostchanger-v$pkgverOLD
rm ${pkgdir}/usr/bin/boostchanger-py
rm ${pkgdir}/usr/share/applications/boostchanger-py.desktop
rm ${pkgdir}/usr/share/pixmaps/boostchanger-py.png
fi
tar -xvf boost_changer-$pkgver.$pkgrel.tar.gz
pip install plyer
}
package() {
mkdir -p ${pkgdir}/opt
mkdir -p ${pkgdir}/home/$USER/.config/autostart
cp -r boost_changer-$pkgver.$pkgrel/src ${pkgdir}/opt
mv ${pkgdir}/opt/src ${pkgdir}/opt/boostchanger-v$pkgver.$pkgrel
install -Dm755 boost_changer-$pkgver.$pkgrel/build/boostchanger-py.sh ${pkgdir}/usr/bin/boostchanger-py
install -Dm644 boost_changer-$pkgver.$pkgrel/build/boostchanger-py.desktop ${pkgdir}/usr/share/applications/boostchanger-py.desktop
install -Dm644 boost_changer-$pkgver.$pkgrel/build/boostchanger-py.png ${pkgdir}/usr/share/pixmaps/boostchanger-py.png
cp boost_changer-$pkgver.$pkgrel/build/boostchanger-py.desktop ${pkgdir}/home/$USER/.config/autostart
chown $USER:$USER ${pkgdir}/home/$USER/.config/autostart/boostchanger-py.desktop
rm -r boost_changer-$pkgver.$pkgrel
rm boost_changer-$pkgver.$pkgrel.tar.gz
}
|