summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5492aa6faca7c263ad72f665ba67b2085de29617 (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
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>

pkgname=inkscape-openpaths-git
pkgver=r8.10d0d7c
pkgrel=2
pkgdesc='Inkscape extension for opening up closed paths, e. g. for single-line fonts in OPF/OTF/TTF format'
arch=('any')
url='https://gitlab.com/EllenWasbo/inkscape-extension-openpaths'

# No license file present but the author has granted the GPL2 license here:
# https://inkscape.org/~EllenWasbo/%E2%98%85openclosedpath
license=('GPL-2.0-only')

depends=('inkscape' 'python')
makedepends=('git')
options=('!debug' '!strip')

source=(
  "${pkgname}::git+https://gitlab.com/EllenWasbo/inkscape-extension-openpaths.git"
)

sha512sums=(
  'SKIP'
)

pkgver() {
  printf "r%s.%s" \
    "$(git -C "${pkgname}" rev-list --count HEAD)" \
    "$(git -C "${pkgname}" rev-parse --short HEAD)"
}

package() {
  echo >&2 'Packaging the Inkscape extension'
  install -D -m 644 -t "${pkgdir}/usr/share/inkscape/extensions" \
    "${srcdir}/${pkgname}/openClosedPath"{.inx,.py}

  echo >&2 'Packaging README.md'
  install -D -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
    "${srcdir}/${pkgname}/README.md"
}