Manually install rootston inside package()

The rootston example compositor is not installed by "ninja install".
This commit is contained in:
Adrian Perez de Castro 2018-06-28 13:15:25 +03:00
parent 74391eabfb
commit dbb49d5e0c
No known key found for this signature in database
GPG Key ID: 91C559DBE4C9123B
2 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,7 @@
pkgbase = wlroots-git pkgbase = wlroots-git
pkgdesc = Modular Wayland compositor library pkgdesc = Modular Wayland compositor library
pkgver = r2574.8585533a pkgver = r2746.9f1d6c58
pkgrel = 1 pkgrel = 2
url = https://github.com/swaywm/wlroots url = https://github.com/swaywm/wlroots
arch = x86_64 arch = x86_64
license = custom:MIT license = custom:MIT

View File

@ -1,7 +1,7 @@
# Maintainer: Adrian Perez de Castro <aperez@igalia.com> # Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname='wlroots-git' pkgname='wlroots-git'
pkgver=r2574.8585533a pkgver=r2746.9f1d6c58
pkgrel=1 pkgrel=2
license=('custom:MIT') license=('custom:MIT')
pkgdesc='Modular Wayland compositor library' pkgdesc='Modular Wayland compositor library'
url='https://github.com/swaywm/wlroots' url='https://github.com/swaywm/wlroots'
@ -47,4 +47,10 @@ package () {
cd "${pkgname}" cd "${pkgname}"
DESTDIR="${pkgdir}" ninja -C build install DESTDIR="${pkgdir}" ninja -C build install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Manually install rootston, "ninja installs" skips it.
install -Dm755 build/rootston/rootston \
"${pkgdir}/usr/bin/rootston"
install -Dm755 rootston/rootston.ini.example \
"${pkgdir}/usr/share/doc/${pkgname}/rootston.ini.example"
} }