desktop/wiiuse/PKGBUILD

33 lines
798 B
Bash
Raw Normal View History

# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
pkgname=wiiuse
2014-04-12 22:41:12 +08:00
pkgver=0.14.0
pkgrel=1
pkgdesc="Wiiuse is a library written in C that connects with several Nintendo Wii remotes."
2014-04-12 22:41:12 +08:00
arch=('x86_64')
url="https://github.com/rpavlik/wiiuse"
depends=('bluez')
2014-04-12 22:41:12 +08:00
makedepends=('cmake')
license="GPL3"
install=wiiuse.install
postfix=_src.tar.gz
2014-04-12 22:41:12 +08:00
#source=("http://downloads.sourceforge.net/sourceforge/wiiuse/wiiuse_v${pkgver}_src.tar.gz"
source=("git+https://github.com/rpavlik/wiiuse.git#tag=$pkgver")
md5sums=('SKIP')
build() {
2014-04-12 22:41:12 +08:00
cd "$srcdir/$pkgname"
[[ ! -e build ]] && mkdir build
cd build
cmake ..
make
}
2014-04-12 22:41:12 +08:00
package() {
cd ${srcdir}/wiiuse
2014-04-12 22:41:12 +08:00
install -D -m644 ./build/src/libwiiuse.so "$pkgdir/usr/lib/libwiiuse.so"
install -D -m644 ./src/wiiuse.h "$pkgdir/usr/include/wiiuse.h"
}