aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mdev-like-a-boss/APKBUILD
blob: bd4cb7b8f9094784e50e006ccf83886aebcf769f (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
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=mdev-like-a-boss
pkgver=20140928
pkgrel=0
pkgdesc="Extras for using mdev instead of udev"
url="https://github.com/slashbeast/mdev-like-a-boss"
arch="all"
license="custom:BSD"
depends="busybox-initscripts"
makedepends=""
install=""
subpackages="$pkgname-xorg $pkgname-doc"
provides="udev"
source="mdev-like-a-boss-$pkgver.tar.gz::https://github.com/slashbeast/mdev-like-a-boss/archive/$pkgver.tar.gz
	00-update-to-git-a5682fe.patch
	0001-adjust-sample-conf-for-alpine-packaging.patch
	README.alpine
	"

_builddir="$srcdir"/mdev-like-a-boss-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir" || return 1
	mkdir -p -m 0755 \
		"$pkgdir/lib/mdev-like-a-boss" \
		"$pkgdir/usr/share/doc/mdev-like-a-boss" \
		"$pkgdir/usr/share/licenses/mdev-like-a-boss" || return 1
	cp helpers/* "$pkgdir"/lib/mdev-like-a-boss/ || return 1
	cp LICENSE "$pkgdir"/usr/share/licenses/mdev-like-a-boss/ || return 1
	cp -R keymaps/ "$pkgdir"/lib/mdev-like-a-boss/ || return 1
	cp README.rst TODO mdev.conf "$pkgdir"/usr/share/doc/mdev-like-a-boss \
		|| return 1
	cp "$srcdir"/README.alpine "$pkgdir"/usr/share/doc/mdev-like-a-boss \
		|| return 1
}

xorg() {
	# try to suppress a package that setup-xorg-base adds;
	# the evdev driver needs udev
	provides="xf86-input-evdev"
	# Should this drag in synaptics as well?
	depends="xf86-input-mouse xf86-input-keyboard"
	pkgdesc="$pkgdesc (extras for udev-less xorg)"
	install_if="$pkgname=$pkgver-r$pkgrel xorg-server"
	cd "$_builddir" || return 1
	mkdir -p -m 0755 "$subpkgdir/usr/share/X11/" && \
		cp -R xorg.conf.d/ "$subpkgdir/usr/share/X11/" || return 1
}

md5sums="4ad1e0bfc42345fc98eef7608235ca19  mdev-like-a-boss-20140928.tar.gz
1fbc8687351b24031e220ca1049ff058  00-update-to-git-a5682fe.patch
5fc798745e270dced84585abdc3d147f  0001-adjust-sample-conf-for-alpine-packaging.patch
10ae564fb545d267da1df672f96871b4  README.alpine"
sha256sums="b5b1d9f4ea60c788883e9eff6889cb3d330bc0c2cfdeeb583b2fed7642339a25  mdev-like-a-boss-20140928.tar.gz
1860b7da927b5f03cde68225adfa06e6c24804c70595a06b903e1c78fce44fb2  00-update-to-git-a5682fe.patch
f35d2df28e37f2618c3310197bc9649108fed15c04057e3e9cd4be26228030e7  0001-adjust-sample-conf-for-alpine-packaging.patch
1d2a2b2b00946466aef3acd5f180e3685ca56575a4be0ba4154cae6d8e14acbb  README.alpine"
sha512sums="c8405c03bab4d80fd5a7495e6bb09113cda1eab687ef0dddf758472ef30f72252275623966d107cf2e00b15c6a3313fb1a8bba1e46b8b6e28a06c9fe75236efb  mdev-like-a-boss-20140928.tar.gz
782c0795ee60050d03a0c92ceff94b48bd07f2ce73f1629151842f4462978688c0358fed314cf8b145d572c6572de0ce43aff6f0ee7b77026b4c14d3ef739280  00-update-to-git-a5682fe.patch
9ad565ea1a1bb77fb6f66fc3609770bc467f9e13a35fb8ae68915a9735d2ee9c769653fcaedae57f45be3245d32c078061ef4f1310a03c48458c2ff739f84d38  0001-adjust-sample-conf-for-alpine-packaging.patch
de8be8ee2330f3e89250021cbd4329119ba2445df506cecac3908f64d3b9dba4cffbc6a202ebe5f4902db45fa58cb0bed7a12c1fc43be6fa002611a047c109da  README.alpine"