summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92f579431cefce8ad50df9362c88fb1694595a9d (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
# Maintainer: Marius Knaust <marius.knaust@gmail.com>

_name=inkscape-applytransforms
pkgname=$_name-git
pkgver=r56.aac7ddc
pkgrel=1
pkgdesc="An Inkscape extension which removes all matrix transforms by applying them recursively to shapes"
arch=("any")
url="https://github.com/Klowner/$_name"
license=("GPL2")
depends=("inkscape" "python-lxml")
makedepends=("git")
provides=("$_name")
conflicts=("$_name")
source=("git+https://github.com/Klowner/$_name.git")
md5sums=("SKIP")

pkgver()
{
	cd "$_name"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package()
{
	cd "$srcdir/$_name"

	install -m755 -Dt "$pkgdir/usr/share/inkscape/extensions" applytransform.py
	install -m644 -Dt "$pkgdir/usr/share/inkscape/extensions" applytransform.inx
}