summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7fa8ed8df2e76f9c4d24532ebe6fa65af4a73bf (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
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=clamtk-gnome-git
pkgver=6.15.r0.g3c6b582
pkgrel=1
pkgdesc="A simple plugin for clamtk for the Nautilus file manager."
url="https://github.com/dave-theunsub/clamtk-gnome"
arch=('x86_64')
license=('GPL')
depends=('clamtk' 'python-nautilus')
makedepends=('git')
optdepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+https://github.com/dave-theunsub/clamtk-gnome.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"

    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

package() {
    cd "${srcdir}/${pkgname}"

    install -m 755 -D "${pkgname%-git}.py" \
	    "${pkgdir}/usr/share/nautilus-python/extensions/${pkgname%-git}.py"
    install -m 644 -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}