blob: 718fe30df42fcec75399e83ba50a889d1fa9cf55 (
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
|
#Maintainer: louson
_name=yocto-cooker
pkgname=python-yocto-cooker
pkgver=1.4.0
pkgrel=2
url="https://github.com/cpb-/yocto-cooker"
pkgdesc="yocto-cooker is a easy yocto manager."
arch=(any)
depends=(python python-jsonschema python-urllib3 python-pyjson5)
makedepends=(python-setuptools)
checkdepends=(cmake)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cpb-/yocto-cooker/archive/refs/tags/${pkgver}.tar.gz")
md5sums=('079d58b9ea2b5da1e918afdbb9f40d2c')
license=('GPL2')
build() {
cd "$srcdir/$_name-$pkgver"
python setup.py build
}
package() {
cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -d "$pkgdir/usr/share/$pkgname"
install -Dm644 sample-menus/* "$pkgdir/usr/share/$pkgname"
}
# Checks are failing in 1.4.0
# check() {
# mkdir "tests" && cd tests
# cmake "$srcdir/$_name-$pkgver/test/"
# make
# ctest
# }
|