blob: a1c5a022c6e55ff668040de67ae0dbfd83e761a9 (
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
49
|
# Maintainer: Alexandre Pujol <alexandre@pujol.io>
_name='mausoleum'
pkgname="$_name"
pkgver=0.11.0
pkgrel=1
pkgdesc='A Python GUI application, command line interface, and wrapper for Tomb'
arch=('any')
url='https://github.com/mandeep/Mausoleum'
license=('GPL3')
depends=(
'tomb'
'python-pyqt5'
'python-pytoml'
'python-click'
'python-appdirs'
)
makedepends=('python-setuptools')
conflicts=("$_name-git")
provides=("$_name" "$_name-gui")
source=("$pkgname-$pkgver.tar.gz::https://github.com/mandeep/Mausoleum/archive/v$pkgver.tar.gz"
"mausoleum.desktop")
sha512sums=('008346c0ef23459d50cf8a86ddb315764433d8f06ba7a8f2457a75117294abaa37a9a2dc30dceb6db31073f25b96527c56190f3b3ba0127e36d24bd2b09aff84'
'fdb2db16c6e8fa3f86a51198d732e50387ea174384ed5f23d7db35f62c00137c84add144fb2e0305d1ea52ee233f8f9f779ef49778ac97f26410ae1a2a2d8ed3')
prepare() {
# Use latest archlinux dependencies
cd "Mausoleum-$pkgver"
sed -i -e "s/==[0-9.]*//g" setup.py
}
build() {
cd "Mausoleum-$pkgver"
python setup.py build
}
package() {
cd "Mausoleum-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
# Care for the icon
install -Dm644 mausoleum/images/ic_vpn_key_black_48dp_1x.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/$_name.png"
# Compose the desktop entry
export name="$_name" pkgver pkgdesc
install -d "$pkgdir"/usr/share/applications
envsubst < "$srcdir/$_name.desktop" > "$pkgdir/usr/share/applications/$_name.desktop"
}
|