aports/community/ois/APKBUILD

31 lines
970 B
Text

# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=ois
pkgver=1.5.1
pkgrel=0
pkgdesc="Object Oriented Input System"
# Note: only tested on the following archs, may work on others too but not
# adding them until this has been confirmed
arch="x86_64 aarch64"
url="https://github.com/wgois/OIS"
license="Zlib"
makedepends="cmake gcc libxaw libx11-dev linux-headers samurai"
source=$pkgname-$pkgver.tar.gz::"https://github.com/wgois/OIS/archive/v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # Package does not include any tests
builddir=$srcdir/OIS-$pkgver
build() {
cmake -B build -G Ninja . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
20598aef999a70900cb7f75ffaf62059acf8e811822971cb21986b5d25d28dacb79e4b4cf4770c70e00d3c55cdd01ef3e68a77c2dd148677784fc4df38891340 ois-1.5.1.tar.gz
"