blob: 895531822a7b10659e059491bf2cce83c9708492 (
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
|
# Maintainer: Vladimir Panteleev <arch-pkg at thecybershadow.net>
# Contributor zlowly <zlowly AT gmail DOT com>
_pkgname=ipad_charge
pkgname=${_pkgname}-git
pkgver=r53.aef5d59
pkgrel=1
pkgdesc="iPad USB charging control utility"
arch=("i686" "x86_64")
url="http://www.rainbow-software.org/linux/"
license=('GPL2')
provides=('ipad_charge')
conflicts=('ipad_charge')
source=("git+https://github.com/mkorenkov/ipad_charge")
md5sums=('SKIP')
depends=('udev' 'libusb')
makedepends=('gcc')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
make
}
package() {
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/etc/udev/rules.d"
cd "${srcdir}/${_pkgname}"
install -m755 -s ipad_charge "${pkgdir}/usr/bin/"
install -m644 95-ipad_charge.rules "${pkgdir}/etc/udev/rules.d/"
}
# vim:set ts=2 sw=2 et:
|