blob: 3f6da409cbce0c4fb52d0fe49a642b15c5e37f27 (
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
|
# Maintainer: Matthew Hiles <matthew.hiles@gmail.com>
pkgname=inkscape-silhouette-git
pkgver=r663.8128b6c
pkgrel=1
pkgdesc="inkscape plugin to control Silhouette vinyl cutters"
arch=(any)
url="https://github.com/fablabnbg/inkscape-silhouette"
license=('GPLv2')
groups=()
depends=(inkscape python python-lxml python-pyusb python-numpy)
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/fablabnbg/inkscape-silhouette')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
#git apply -p1 ../../py3fix.patch
#python setup.py build
}
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR="$pkgdir/" install
cp ../../*.svg "$pkgdir/usr/share/inkscape/templates/"
mkdir -p "$pkgdir/usr/share/inkscape/extensions/"
cp sendto_silhouette.* "$pkgdir/usr/share/inkscape/extensions/"
cp -R silhouette "$pkgdir/usr/share/inkscape/extensions/"
mkdir -p "$pkgdir/etc/udev/rules.d/"
cp silhouette-udev.rules "$pkgdir/etc/udev/rules.d/"
mv "$pkgdir/lib/" "$pkgdir/usr/"
}
|