summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbe5e2c789d4f06f34920702d15126d662e2fd2b (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
# Maintainer: x70b1

pkgname=kicad-kibuzzard-git
pkgver=r177.da33521
pkgrel=1
pkgdesc="This kicad plugin lets you easily create labels in various fonts."
arch=("any")
url="https://github.com/gregdavill/KiBuzzard"
license=("MIT")
makedepends=("git")
depends=("kicad>=5.1.0")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+${url}.git")
noextract=()
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    set -o pipefail
    git describe --long 2> /dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd ${pkgname}
    mkdir -p "$pkgdir/usr/share/kicad/scripting/plugins/KiBuzzard"
    cp -r KiBuzzard "$pkgdir"/usr/share/kicad/scripting/plugins/
}