diff options
author | FabioLolix | 2021-05-28 23:25:27 +0200 |
---|---|---|
committer | FabioLolix | 2021-05-28 23:25:27 +0200 |
commit | ddf6ab1900157429c63d95cc18c121cfe5467275 (patch) | |
tree | cc5afc6a452ddba2c91cf77873b730ba218c19a5 /PKGBUILD | |
parent | bd9a592060748832111bfa8d83af29b54fdae21c (diff) | |
download | aur-ddf6ab1900157429c63d95cc18c121cfe5467275.tar.gz |
update build, add tests, update contact info
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,25 +1,27 @@ -# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> +# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix # Maintainer: Andrew Rabert <ar@nullsum.net> # Contributor: Lubosz Sarnecki <lubosz@gmail.com> # Contributor: VĂtor Ferreira <vitor.dominor@gmail.com> pkgname=xboxdrv-git pkgver=0.8.4.r453.gf8ef7e0 -pkgrel=1 +pkgrel=2 pkgdesc="An XBox/XBox 360 gamepad driver - as alternative to the xpad-kernel module - with more configurability, runs in userspace and supports a multitude of controllers" arch=(x86_64 i686 arm armv6h armv7h aarch64) url="https://xboxdrv.gitlab.io/" license=(GPL3) -depends=(libx11 dbus-glib dbus-python libusb bluez-libs gtk3) +depends=(libx11 dbus-glib libusb bluez-libs gtk3 fmt) makedepends=(git cmake boost) provides=(xboxdrv) conflicts=(xboxdrv) source=("git+https://gitlab.com/xboxdrv/xboxdrv.git" "git+https://gitlab.com/argparser/argparser.git" + "git+https://github.com/google/googletest.git" "xboxdrv.service" "xboxdrv.conf") sha256sums=('SKIP' 'SKIP' + 'SKIP' '51387a52a97d2e004a4160432131f18326e9ae655447694e170f18bdb8d7204f' 'f155dd059faecafa60ecaa0988aec815ee0c58f1af45075de82ae10c31db2750') @@ -32,16 +34,22 @@ prepare() { cd "${pkgname%-git}" mkdir -p build git submodule init - git config submodule.argparser.url "$srcdir/argparser" + git config submodule.external/argparser.url "$srcdir/argparser" + git config submodule.external/googletest.url "$srcdir/googletest" git submodule update } build() { cd "${pkgname%-git}/build" - cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=ON make } +check() { + cd "${pkgname%-git}/build" + make test +} + package() { cd "${pkgname%-git}/build" make install DESTDIR="$pkgdir" |