blob: c901776c6f3604d812ddd69b39fe1b36e4521d03 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mtdev
pkgver=1.1.5
pkgrel=1
pkgdesc="Multitouch Protocol Translation Library Development Package"
url="http://bitmath.org/code/mtdev/"
arch="all"
license="MIT"
depends=""
depends_dev="linux-headers"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://bitmath.org/code/mtdev/mtdev-$pkgver.tar.gz"
_builddir="$srcdir"/mtdev-$pkgver
prepare() {
local i
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
dev() {
default_dev
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
md5sums="7fdbc6d16cf6fcc2c5c4537f84141cf8 mtdev-1.1.5.tar.gz"
sha256sums="a662924dd09cf538c8df66514da345e40c3cbfa880cc7262bc3b55ee46d0c1f4 mtdev-1.1.5.tar.gz"
sha512sums="f59f8cda9b81e17253ff2da93a14b6f8e48361aff890dd5d1bb89ca385d713c212f961ed34fc5b866affd83013530a036736faca071ec9a424091979a12c9208 mtdev-1.1.5.tar.gz"
|