summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5acbb46856fe18864ead1fe6f4d48dbb1c6eaf5 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# Maintainer: Aaron Mueller <mail@aaron-mueller.de>
# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
# Contributor: Xpander <xpander0@gmail.com>
# Contributor: Stefan Achatz <erazor_de@users.soruceforge.net>

pkgname=('roccat-tools-common'
         'roccat-tools-arvo'
         'roccat-tools-isku'
         'roccat-tools-iskufx'
         'roccat-tools-kone'
         'roccat-tools-koneplus'
         'roccat-tools-konepure'
         'roccat-tools-konepureoptical'
         'roccat-tools-konextd'
         'roccat-tools-kovaplus'
         'roccat-tools-lua'
         'roccat-tools-pyra'
         'roccat-tools-ryos'
         'roccat-tools-savu')
pkgbase=roccat-tools
pkgver=2.0.0
pkgrel=1
pkgdesc='Userland applications to configure and make extended use of ROCCAT devices'
arch=('i686' 'x86_64')
url='http://roccat.sourceforge.net'
license=('GPL2')
depends=('libgaminggear=0.3.0' 'libcanberra' 'gtk2' 'libnotify>=0.7.0' 'libusb' 'dbus-glib' 'udev' 'hicolor-icon-theme')
makedepends=('cmake')
optdepends=('kmod-roccat: Adds support for some devices not yet in vanilla kernel')
conflicts=
source=("http://downloads.sourceforge.net/project/roccat/roccat-tools/roccat-tools-$pkgver.tar.bz2")

md5sums=('f87dbd1a909b783b0e2cb75b39dee403')

build() {
  cd "$srcdir/$pkgbase-$pkgver"
  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DUDEVDIR=/usr/lib/udev/rules.d -DWITHOUT_PYTHON=TRUE
  make
}

package_roccat-tools() {
  /bin/true
}

package_roccat-tools-common() {
  pkgdesc='ROCCAT tools common files'
install=roccat-tools.install

  for i in icons sounds libroccat libroccathelper libroccatwidget roccateventhandler; do
    cd $srcdir/$pkgbase-$pkgver/$i
    make DESTDIR="$pkgdir/" install
  done
}

package_roccat-tools-arvo() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Arvo devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/arvo"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-arvo.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-arvo.rules
}

package_roccat-tools-isku() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Isku devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/isku"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-isku.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-isku.rules
}

package_roccat-tools-iskufx() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Isku FX devices'
  depends=('roccat-tools-common' 'roccat-tools-isku')

  cd "$srcdir/$pkgbase-$pkgver/iskufx"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-iskufx.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-iskufx.rules
}

package_roccat-tools-kone() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Kone devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/kone"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-kone.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-kone.rules
}

package_roccat-tools-koneplus() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Kone[+] devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/koneplus"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-koneplus.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-koneplus.rules
}

package_roccat-tools-konepure() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Kone Pure devices'
  depends=('roccat-tools-common' 'roccat-tools-konextd')

  cd "$srcdir/$pkgbase-$pkgver/konepure"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-konepure.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-konepure.rules
}

package_roccat-tools-konepureoptical() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Kone Pure optical devices'
  depends=('roccat-tools-common' 'roccat-tools-konepure')

  cd "$srcdir/$pkgbase-$pkgver/konepureoptical"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-konepureoptical.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-konepureoptical.rules
}

package_roccat-tools-konextd() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Kone XTD devices'
  depends=('roccat-tools-common' 'roccat-tools-koneplus')

  cd "$srcdir/$pkgbase-$pkgver/konextd"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-konextd.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-konextd.rules
}

package_roccat-tools-kovaplus() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Kova[+] devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/kovaplus"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-kovaplus.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-kovaplus.rules
}

package_roccat-tools-lua() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Lua devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/lua"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-lua.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-lua.rules
}

package_roccat-tools-pyra() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Pyra devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/pyra"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-pyra.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-pyra.rules
}

package_roccat-tools-ryos() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Ryos devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/ryos"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-ryos.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-ryos.rules
}

package_roccat-tools-savu() {
  pkgdesc='Userland applications to configure and make extended use of ROCCAT Savu devices'
  depends=('roccat-tools-common')

  cd "$srcdir/$pkgbase-$pkgver/savu"
  make DESTDIR="$pkgdir/" install
  cd "$srcdir/$pkgbase-$pkgver"
  install -Dm644 udev/90-roccat-savu.rules $pkgdir/usr/lib/udev/rules.d/90-roccat-savu.rules
}