| 1 |
# Maintainer: ${MAINTAINER} <${MAINTAINER_EMAIL}> |
| 2 |
|
| 3 |
pkgname=${APPNAME_LOWER} |
| 4 |
_pkgname=${PACKAGE} |
| 5 |
pkgver=${VERSION} |
| 6 |
pkgrel=1 |
| 7 |
pkgdesc="${SUMMARY}" |
| 8 |
arch=('i686' 'x86_64') |
| 9 |
url="${URL}" |
| 10 |
license=('GPL3') |
| 11 |
makedepends=('libx11' 'libxinerama' 'libxrandr' 'libxxf86vm' 'iptables-nft') |
| 12 |
depends=('python2>=${PY_MINVERSION}' 'wxpython>=${WX_MINVERSION}' 'blas' 'python2-numpy' 'sdl2_mixer' 'desktop-file-utils' 'hicolor-icon-theme' 'python2-gobject' 'python2-psutil' 'xdg-utils') |
| 13 |
optdepends=('argyllcms: calibration & profiling support') |
| 14 |
conflicts=('dispcalgui' 'dispcalgui-0install' '${APPNAME_LOWER}-0install') |
| 15 |
install=${pkgname}.install |
| 16 |
|
| 17 |
source=("${HTTPURL}download/${_pkgname}-${pkgver}.tar.gz") |
| 18 |
|
| 19 |
md5sums=('${MD5}') |
| 20 |
|
| 21 |
build() { |
| 22 |
cd "${srcdir}/${_pkgname}-${pkgver}" |
| 23 |
|
| 24 |
# Convert line endings in LICENSE.txt |
| 25 |
python2 -c "f = open('LICENSE.txt', 'rb') |
| 26 |
d = f.read().replace('\r\n', '\n').replace('\r', '\n') |
| 27 |
f.close() |
| 28 |
f = open('LICENSE.txt', 'wb') |
| 29 |
f.write(d) |
| 30 |
f.close()" |
| 31 |
|
| 32 |
python2 setup.py build --use-distutils |
| 33 |
} |
| 34 |
|
| 35 |
package() { |
| 36 |
cd "${srcdir}/${_pkgname}-${pkgver}" |
| 37 |
|
| 38 |
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-instrument-configuration-files --skip-postinstall |
| 39 |
|
| 40 |
# udev/hotplug |
| 41 |
mkdir -p "${pkgdir}/usr/share/${_pkgname}/usb" |
| 42 |
# USB and serial instruments using udev, where udev already creates /dev/bus/usb/00X/00X devices |
| 43 |
cp -f "misc/55-Argyll.rules" "${pkgdir}/usr/share/${_pkgname}/usb/55-Argyll.rules" |
| 44 |
# USB using udev, where there are NOT /dev/bus/usb/00X/00X devices |
| 45 |
cp -f "misc/45-Argyll.rules" "${pkgdir}/usr/share/${_pkgname}/usb/45-Argyll.rules" |
| 46 |
# USB using hotplug and Serial using udev (older versions of Linux) |
| 47 |
cp -f "misc/Argyll" "${pkgdir}/usr/share/${_pkgname}/usb/Argyll" |
| 48 |
cp -f "misc/Argyll.usermap" "${pkgdir}/usr/share/${_pkgname}/usb/Argyll.usermap" |
| 49 |
|
| 50 |
# Fix permissions - read for all, eXecute for directories and scripts |
| 51 |
chmod -R +rX "${pkgdir}" |
| 52 |
} |
| 53 |
|
| 54 |
# vim:set ts=2 sw=2 et: |