wok-current view device-tree-compiler/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="device-tree-compiler"
4 SOURCE="dtc"
5 VERSION="1.6.1"
6 CATEGORY="development"
7 SHORT_DESC="Device Tree Compiler"
8 MAINTAINER="shann@tank.slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.devicetree.org/"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WGET_URL="https://cdn.kernel.org/pub/software/utils/dtc/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS="meson python3-dev python3-setuptools swig"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
22 mkdir build && cd build
23 meson .. \
24 --buildtype=release \
25 --prefix=/usr \
26 --libdir=/usr/lib \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 --localstatedir=/var \
30 --sysconfdir=/etc
32 ninja
33 DESTDIR=$install ninja install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 }