blob: 21b6e87aaffb4306e62558eeaefd3e0ff28856da (
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
|
# Maintainer: twa022 <twa022 at gmail dot com>
_pkgname=clipboard-to-file
pkgname=${_pkgname}-git
pkgver=0.0.9+r36+a1861f8
pkgrel=2
pkgdesc="Folder color switcher extension for nautilus, caja, and nemo"
arch=('any')
url="https://github.com/costales/clipboard-to-file"
license=('GPL3')
makedepends=('git' 'python-distutils-extra' 'python-setuptools')
optdepends=('python-nautilus: Nautilus extension'
'nemo-python>=3.9.0: Nemo extension'
'python-caja: Caja extension')
conflicts=('folder-color-nautilus-bzr')
source=("${_pkgname}::git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "%s+r%s+%s" \
"$( grep 'version[\t\ ]*=' setup.py | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+' )" \
"$( git rev-list --count HEAD )" \
"$( git rev-parse --short HEAD )"
}
prepare() {
cd "${srcdir}"
for _fm in nemo caja nautilus ; do
cp -r "${_pkgname}" "${_pkgname}-${_fm}"
pushd "${_pkgname}-${_fm}"/install_scripts
sed -i 's:^rm -r ../install_scripts:#&:' ${_fm}.sh
./${_fm}.sh 2>/dev/null
popd
done
}
package() {
for _fm in nautilus caja nemo ; do
pushd "${_pkgname}-${_fm}/"
python ./setup.py install --root="$pkgdir"
popd
done
}
|