blob: aa1cde9fcbd3d18ff40de6aeee2b6dae959f80fb (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Co-Maintainer: Chris Billington <chrisjbillington at gmail dot com>
pkgname=git-nautilus-icons-git
pkgver=2.1.0.r0.g8ee9e40
pkgrel=2
pkgdesc="A Nautilus, Nemo, and Caja extension to overlay icons on files in git repositories"
arch=('any')
url="https://github.com/chrisjbillington/git-nautilus-icons"
license=('BSD-2-Clause')
depends=('python-gobject')
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools-scm'
'python-wheel'
)
optdepends=(
'nautilus-python: Nautilus support'
'nemo-python: Nemo support'
'python-caja: Caja support'
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" "${pkgname%-git}-common" 'git-caja-icons'
'git-nemo-icons')
source=("git+https://github.com/chrisjbillington/git-nautilus-icons.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname%-git}"
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver%.*}
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname%-git}"
python -m installer --destdir="${pkgdir}" dist/*.whl
# Install license:
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname/"
}
|