blob: 5d61ae21443b81ba5f1541bcd13a68f8854ff51e (
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
|
pkgname=nbmanager-git
_gitname=nbmanager
pkgver=43.c90aac4
pkgrel=2
pkgdesc='A GUI to view and manager running Jupyter notebook servers'
arch=(any)
url='https://github.com/jupyter/nbmanager'
license=(BSD)
makedepends=(git)
depends=(python python-pyqt5 jupyter python-qtico)
provides=(nbmanager ipython-nbmanager jupyter-nbmanager)
conflicts=(nbmanager ipython-nbmanager jupyter-nbmanager)
source=("git://github.com/jupyter/nbmanager.git")
md5sums=(SKIP)
pkgver() {
cd $_gitname
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
package() {
cd "$srcdir/$_gitname"
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 jupyter-nbmanager.desktop "$pkgdir/usr/share/applications/jupyter-nbmanager.desktop"
for icon in icons/hicolor/*/apps/jupyter-nbmanager.*; do
install -Dm644 $icon "$pkgdir/usr/share/$icon"
done
}
|