diff options
author | Anatol Pomozov | 2015-06-17 08:46:15 -0700 |
---|---|---|
committer | Anatol Pomozov | 2015-06-17 08:46:15 -0700 |
commit | 38a322255fcb48fac9a393e2f12c5a20e59c13a0 (patch) | |
tree | ccad322315da3be259de250ff5a51e301b1ce3d6 | |
download | aur-38a322255fcb48fac9a393e2f12c5a20e59c13a0.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c2044716cc86 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = hdctools-git + pkgdesc = Chrome OS Hardware Debug & Control Tools + pkgver = r468.2a81b5c + pkgrel = 1 + url = http://sites.google.com/a/google.com/chromeos-partner/hardware-control-and-debug + arch = i686 + arch = x86_64 + license = BSD + makedepends = tidyhtml + makedepends = python2-setuptools + depends = python2 + depends = python2-pyusb + depends = python2-pyserial + depends = python2-pexpect + depends = libftdi + depends = python2-numpy + source = git+https://chromium.googlesource.com/chromiumos/third_party/hdctools + sha1sums = SKIP + +pkgname = hdctools-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..833df6a54fed --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Anatol Pomozov <anatol dot pomozov at gmail> + +pkgname=hdctools-git +pkgver=r468.2a81b5c +pkgrel=1 +pkgdesc='Chrome OS Hardware Debug & Control Tools' +url='http://sites.google.com/a/google.com/chromeos-partner/hardware-control-and-debug' +arch=(i686 x86_64) +depends=(python2 python2-pyusb python2-pyserial python2-pexpect libftdi python2-numpy) +makedepends=(tidyhtml python2-setuptools) +license=(BSD) +source=(git+https://chromium.googlesource.com/chromiumos/third_party/hdctools) +sha1sums=('SKIP') + +#TODO: +# - figure out compile problem with CPPFLAG +# - add udev/systemd rule that automacially starts a daemon if the device is connected + +pkgver() { + cd hdctools + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd hdctools + + # build does not like flags provided by Arch. figure out why. + unset CPPFLAGS + + make all +} + +check() { + cd hdctools + python2 setup.py test +} + +package() { + cd hdctools + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + rm "$pkgdir"/usr/lib/python2.7/site-packages/*.{d,o} + + # ctypes cannot load shared libs from /usr/lib/python2.7/site-packages/ + # move the libs to standard location + mv "$pkgdir"/usr/lib/python2.7/site-packages/lib*.so "$pkgdir"/usr/lib +} |