blob: c80794db66777220f460027ec09d357cf25c8f8d (
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
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Eloy Garcia Almaden <eloy.garcia.pca@gmail.com>
pkgname=buttermanager
pkgver=2.4
pkgrel=1
epoch=
pkgdesc="Graphical tool to create BTRFS snapshots, balance filesystems and upgrade the system safetly"
arch=('x86_64')
url="https://github.com/egara/buttermanager"
license=('GPL')
groups=()
depends=('btrfs-progs' 'python>=3' 'grub-btrfs' 'python-setuptools' 'python-pyaml' 'python-pyqt5' 'tk')
makedepends=('python>=3' 'git')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=('https://github.com/egara/buttermanager/archive/2.4.tar.gz')
noextract=()
md5sums=('SKIP')
validpgpkeys=()
build() {
cd "$pkgname-$pkgver"
python setup.py build
}
package() {
cd "$pkgname-$pkgver"
# Creating destination directory
install -dm755 "$pkgdir/opt/$pkgname"
# Installing ButterManager using python-setuptools
echo -e "\n Installing ButterManager. Please wait..."
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
# Copying bm_main.py
install -Dm644 "$srcdir/$pkgname-$pkgver/$pkgname/bm_main.py" "${pkgdir}/$(python -c "import site; print(site.getsitepackages()[0])")/$pkgname/bm_main.py"
# Copying .desktop file and icon
echo -e "\n Creating desktop icon. Finishing the installation"
install -Dm644 "$srcdir/$pkgname-$pkgver/packaging/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "$srcdir/$pkgname-$pkgver/packaging/$pkgname.svg" "$pkgdir/opt/$pkgname/gui/$pkgname.svg"
}
|