diff options
author | Ingo Heimbach | 2020-03-04 14:10:00 +0100 |
---|---|---|
committer | Ingo Heimbach | 2020-03-04 14:10:00 +0100 |
commit | c2b09feeef660426faa46e715eedaa6617e062ff (patch) | |
tree | e0e2ecb12d771190ba495c25d7106b858763ea10 | |
download | aur-c2b09feeef660426faa46e715eedaa6617e062ff.tar.gz |
Publish version 0.2.3 of vimtips
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..707caf28a73e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = vimtips + pkgdesc = A tool to aggregate and show vim tips from different sources. + pkgver = 0.2.3 + pkgrel = 1 + url = https://github.com/IngoHeimbach/vimtips + arch = any + license = MIT + makedepends = python-setuptools + depends = python + depends = python-pyqt5 + depends = python-pyquery + depends = python-requests + depends = python-psutil + source = https://github.com/IngoHeimbach/vimtips/archive/v0.2.3.tar.gz + sha256sums = 8773d6ef00caadb95c4a7c14c1320f2bf64e1a90d31b37924f064da138239dae + +pkgname = vimtips + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..2003141c0783 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/src +/*.tar.xz +/*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6104fe47faf2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Ingo Heimbach <i.heimbach@fz-juelich.de> + +pkgname="vimtips" +pkgver="0.2.3" +pkgrel="1" +pkgdesc="A tool to aggregate and show vim tips from different sources." +arch=("any") +url="https://github.com/IngoHeimbach/vimtips" +license=("MIT") +depends=("python" "python-pyqt5" "python-pyquery" "python-requests" + "python-psutil") +makedepends=("python-setuptools") +source=("https://github.com/IngoHeimbach/vimtips/archive/v${pkgver}.tar.gz") +sha256sums=("8773d6ef00caadb95c4a7c14c1320f2bf64e1a90d31b37924f064da138239dae") + +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" +} |