summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b353cd59f93941e14aaeec58f92120b4cc8f95f (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
#Automatically generated by pip2arch on 2018-12-05

pkgname=inkscape-inkcut
pkgver=273.gb32347a
pkgrel=1
pkgdesc="Inkscape extension for inkcut."
url="https://github.com/codelv/inkcut/"
depends=('python' 'inkscape' 'inkcut' )
license=('GPLv3')
arch=('any')
source=("git+https://github.com/codelv/inkcut")
sha256sums=('SKIP')

pkgver() {
	cd 'inkcut'
	echo "$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

package() {
	mkdir -p "$pkgdir/usr/share/doc/inkscape-inkcut/"
	cp "$srcdir/inkcut/plugins/inkscape/README.md" "$pkgdir/usr/share/doc/inkscape-inkcut/"
	mkdir -p "$pkgdir/usr/share/inkscape/extensions"
    cp "$srcdir/inkcut/plugins/inkscape/inkcut.py" "$pkgdir/usr/share/inkscape/extensions/"
    cp "$srcdir/inkcut/plugins/inkscape/inkcut_cut.py" "$pkgdir/usr/share/inkscape/extensions/"
    cp "$srcdir/inkcut/plugins/inkscape/inkcut_cut.inx" "$pkgdir/usr/share/inkscape/extensions/"
    cp "$srcdir/inkcut/plugins/inkscape/inkcut_open.py" "$pkgdir/usr/share/inkscape/extensions/"
    cp "$srcdir/inkcut/plugins/inkscape/inkcut_open.inx" "$pkgdir/usr/share/inkscape/extensions/"
}