desktop/wiiuse/PKGBUILD
2014-04-12 14:41:12 +00:00

33 lines
798 B
Bash

# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
pkgname=wiiuse
pkgver=0.14.0
pkgrel=1
pkgdesc="Wiiuse is a library written in C that connects with several Nintendo Wii remotes."
arch=('x86_64')
url="https://github.com/rpavlik/wiiuse"
depends=('bluez')
makedepends=('cmake')
license="GPL3"
install=wiiuse.install
postfix=_src.tar.gz
#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() {
cd "$srcdir/$pkgname"
[[ ! -e build ]] && mkdir build
cd build
cmake ..
make
}
package() {
cd ${srcdir}/wiiuse
install -D -m644 ./build/src/libwiiuse.so "$pkgdir/usr/lib/libwiiuse.so"
install -D -m644 ./src/wiiuse.h "$pkgdir/usr/include/wiiuse.h"
}