summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cec80195b1866320e4fb7cc0a3d53d3f773da9f2 (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
# Maintainer: Chance Chen <ufbycd@163.com>
pkgname=python-easyeda2kicad-git
pkgver=v0.6.5.r22.g8eeaab0
pkgrel=1
pkgdesc="Convert any LCSC components (including EasyEDA) to KiCad library"
arch=('any')
url="https://github.com/uPesy/easyeda2kicad.py"
license=('AGPL')
groups=()
depends=('python')
makedepends=('python-setuptools')
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
	cd $pkgname
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd $pkgname
    python setup.py build
}

package() {
    cd $pkgname
    python setup.py install --root="$pkgdir" --skip-build
}