blob: 034896843ad519c529068c872fc756e2b05eef9a (
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
|
# Maintainer: Ingo Meyer <IJ_M@gmx.de>
pkgname="vimtips"
pkgver="0.2.7"
pkgrel="1"
pkgdesc="A tool to aggregate and show vim tips from different sources."
arch=("any")
url="https://github.com/IngoMeyer441/vimtips"
license=("MIT")
depends=("python" "python-pyqt5" "python-pyquery" "python-requests"
"python-psutil")
makedepends=("python-setuptools")
source=("https://github.com/IngoMeyer441/vimtips/archive/v${pkgver}.tar.gz")
sha256sums=("56f1ca714b203d8c88a29eeda12110488b55cf0d6545bc5c0611417266482287")
build() {
cd "${srcdir}/${pkgname}-${pkgver}" || return
python setup.py build
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}" || return
python setup.py install --optimize=1 \
--prefix=/usr \
--root="${pkgdir}" \
--skip-build && \
cd "${pkgdir}" && \
mkdir -p opt usr/share/applications usr/share/pixmaps && \
cat <<-EOF > "usr/share/applications/vimtips.desktop" || return
[Desktop Entry]
Categories=Utility;
Comment=A tool to aggregate and show vim tips from different sources
Exec=vimtips-gui
GenericName=VimTips
Icon=vimtips
Name=VimTips
Terminal=false
Type=Application
Version=${pkgver}
EOF
python_version="$(python -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))')" && \
ln -s "/usr/lib/python${python_version}/site-packages/vimtips/vimlogo.svg" \
"usr/share/pixmaps/vimtips.svg"
}
|