summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 762a26a584b075300c8019a61e1c93a766f6307e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: spider-mario <spidermario@free.fr>
# Contributor: ccl2of4
# Contributor: Mister.Bubbles <http://crbserver.net>
# Contributor: daemonTutorials <http://www.daemon-tuts.de>
pkgname=wii-u-gc-adapter
pkgver=0.0.38
pkgrel=1
pkgdesc="Tool for using the Wii U GameCube Adapter on Linux"
arch=('i686' 'x86_64')
url="https://github.com/ToadKing/wii-u-gc-adapter"
license=('MIT')
depends=('libusb')
makedepends=('git')
source=('git+https://github.com/ToadKing/wii-u-gc-adapter.git#commit=ae6b46d7a2b32068e746f1d2d816f4b3d6a7ac80'
        '51-ignore-gc-controller.conf'
        'wii-u-gc-adapter.service')
sha512sums=('SKIP'
            '6e3ca9aabd8732f5ab5220e249a7d789067b8014bbc0cbbd790f6afac04957662ad844aab70680139cfb6079fc1b28cb6fe0e664f46c13401cf068a632403dac'
            '9047f2709240a485497ef33fbfe12fc7050469eae03e09ac28b8cdaa63d9595d99d19641deac4e7fece4982b0437bc899289cfb881e875c4eeb663890149ddc2')

pkgver() {
	cd "$srcdir"/wii-u-gc-adapter
	echo -n 0.0.
	git rev-list --count HEAD
}

build() {
	cd "$srcdir"/wii-u-gc-adapter
	make
}

package() {
	install -Dm755 "$srcdir"/wii-u-gc-adapter/wii-u-gc-adapter "$pkgdir"/usr/bin/wii-u-gc-adapter
	install -Dm644 <(echo uinput) "$pkgdir"/usr/lib/modules-load.d/wii-u-gc-adapter.conf
	install -Dm644 "$srcdir"/wii-u-gc-adapter.service "$pkgdir"/usr/lib/systemd/system/wii-u-gc-adapter.service
	install -Dm644 "$srcdir"/51-ignore-gc-controller.conf "$pkgdir"/usr/share/X11/xorg.conf.d/51-ignore-gc-controller.conf
	install -Dm644 "$srcdir"/wii-u-gc-adapter/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}