diff options
author | Ethan D. Twardy | 2022-10-28 16:54:05 -0500 |
---|---|---|
committer | Ethan D. Twardy | 2022-10-28 16:54:05 -0500 |
commit | 24b475852e9135aafc89800d2482115852b18171 (patch) | |
tree | f74a5fb30088bd25ba1fd943acf80506e05b90c6 /PKGBUILD | |
parent | f42acb186bb43fc6a1af2e6dfd69f040d166cf64 (diff) | |
download | aur-24b475852e9135aafc89800d2482115852b18171.tar.gz |
Fix indent, parameter substitution, and install Python tools
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,7 +1,6 @@ # Maintainer: amateurece <ethan.twardy at gmail dot com> pkgname=sdbusplus-git -_pkgname=${pkgname#-git} pkgver=r598.a8a092c0 pkgrel=1 pkgdesc="C++ bindings for systemd dbus APIs" @@ -14,7 +13,7 @@ source=("${pkgname}::git+https://github.com/openbmc/sdbusplus.git") sha256sums=('SKIP') _meson_setup() { - arch-meson -Dtests=disabled -Dexamples=disabled "${_pkgname}" build + arch-meson -Dtests=disabled -Dexamples=disabled "${pkgname}" build } prepare() { @@ -22,15 +21,21 @@ prepare() { } pkgver() { - cd "${_pkgname}" - echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + cd "${pkgname}" + echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } build() { _meson_setup meson compile -C build + + # Python tools + cd "${pkgname}/tools" + python setup.py build } package() { - meson install -C build --destdir "$pkgdir" + meson install -C build --destdir "$pkgdir" + cd "${pkgname}/tools" + python setup.py install --root="$pkgdir" --optimize=1 } |