diff options
author | hxss | 2020-11-28 21:23:11 +0300 |
---|---|---|
committer | hxss | 2020-11-28 21:23:11 +0300 |
commit | 2543abc1e46e53944561923b490f4c387a7afc78 (patch) | |
tree | 444b42f639d3bd782b396c7dee60688acfdcce85 | |
download | aur-2543abc1e46e53944561923b490f4c387a7afc78.tar.gz |
init commit
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | INSTALL | 8 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ed2dbe39628f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = folderpreview + pkgdesc = Generates folder thumbs using child files thumbs + pkgver = 0.4.0 + pkgrel = 1 + url = https://gitlab.com/hxss-linux/folderpreview + install = INSTALL + arch = any + license = MIT + makedepends = python-pip + makedepends = curl + makedepends = jq + depends = python-dbus-next + depends = python-pyxdg + depends = python-yaml + depends = python-parse + depends = python-gobject + depends = python-pyvips + depends = python-systemd + depends = python-colorlog + provides = folderpreview + replaces = folderpreview-git + +pkgname = folderpreview + diff --git a/INSTALL b/INSTALL new file mode 100644 index 000000000000..89c7fb5d7421 --- /dev/null +++ b/INSTALL @@ -0,0 +1,8 @@ + +post_install() { + folderpreview --install-thumbnailer +} + +pre_remove() { + rm -f /usr/share/thumbnailers/folderpreview.thumbnailer +} diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..02463631071d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Sergey Khobta <hxss@ya.ru> + +pipname=folderpreview +pkgname=$pipname +pkgver=0.4.0 +pkgrel=1 +pkgdesc="Generates folder thumbs using child files thumbs" +arch=(any) +url="https://gitlab.com/hxss-linux/folderpreview" +license=(MIT) +depends=( + 'python-dbus-next' + 'python-pyxdg' + 'python-yaml' + 'python-parse' + 'python-gobject' + 'python-pyvips' + 'python-systemd' + 'python-colorlog' +) +makedepends=( + 'python-pip' + 'curl' + 'jq' +) +install='INSTALL' +provides=($pipname) +replaces=('folderpreview-git') + +pkgver() { + curl -s https://pypi.org/pypi/$pipname/json | jq -r .info.version +} + +package() { + pip install $pipname \ + --root=$pkgdir \ + --no-user \ + --no-deps \ + --ignore-installed \ + --quiet + + install -Dm644 $(find $pkgdir -name LICENSE*) \ + -t "$pkgdir/usr/share/licenses/$pkgname" +} |