added PKGBUILD for argyllcms development version
This commit is contained in:
parent
c426185d23
commit
31e65544e1
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
**/*.pkg.tar.xz
|
58
argyllcms-dev/PKGBUILD
Normal file
58
argyllcms-dev/PKGBUILD
Normal file
@ -0,0 +1,58 @@
|
||||
# $Id$
|
||||
# Maintainer: Philipp Haefelfinger <philipp@haefelfinger.ch>
|
||||
# Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
|
||||
|
||||
pkgname=argyllcms-dev
|
||||
_pkgname=Argyll
|
||||
pkgver=dev
|
||||
_pkgver="V1.9.0_beta"
|
||||
pkgrel=1
|
||||
pkgdesc="An ICC compatible color management system with support for different colorimeter hardware"
|
||||
arch=(i686 x86_64)
|
||||
depends=('libtiff' 'libxss' 'libxinerama' 'libxxf86vm' 'libxrandr' 'openssl')
|
||||
makedepends=('ftjam' 'zip' 'unzip')
|
||||
|
||||
# You need to fake an UserAgent or it doesn't download
|
||||
DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -A "Mozilla/4.0" -o %o %u')
|
||||
source=(http://www.argyllcms.com/${_pkgname}_dev_src.zip)
|
||||
url="http://www.argyllcms.com/"
|
||||
license=("GPL" "AGPL")
|
||||
install=${pkgname}.install
|
||||
sha256sums=('7531c0cf854a0f0837aa75af19524b9422532530b6f5d5c8e498b8af3b00ca36')
|
||||
|
||||
prepare() {
|
||||
cd ${_pkgname}_${_pkgver}
|
||||
sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
|
||||
sed -i 's/-j${NUMBER_OF_PROCESSORS:-2}/$MAKEFLAGS/' makeall.sh
|
||||
|
||||
# From Gentoo argyllcms ebuild
|
||||
echo "LINKFLAGS += ${LDFLAGS} ;" >> Jamtop
|
||||
echo "STDLIBS += -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr -lXau -lXdmcp -lXss -ltiff -ljpeg ;" >> Jamtop
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${_pkgname}_${_pkgver}
|
||||
|
||||
CCOPTFLAG="$CFLAGS" ./makeall.sh
|
||||
./makeinstall.sh
|
||||
./makepackagebin.sh
|
||||
rm {bin,ref}/License.txt
|
||||
rm {doc,ref}/afiles
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "${pkgdir}"/usr/bin
|
||||
install -m755 ${_pkgname}_${_pkgver}/bin/* "${pkgdir}"/usr/bin
|
||||
mkdir -p "${pkgdir}"/usr/share/${pkgname}/ref
|
||||
install -m644 ${_pkgname}_${_pkgver}/ref/*.* "${pkgdir}"/usr/share/${pkgname}/ref
|
||||
install -m644 ${_pkgname}_${_pkgver}/profile/*.sp "${pkgdir}"/usr/share/${pkgname}/ref
|
||||
install -m644 ${_pkgname}_${_pkgver}/scanin/*.c?? "${pkgdir}"/usr/share/${pkgname}/ref
|
||||
# Because there is just html documentation we have to move it
|
||||
mkdir -p "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs
|
||||
install -m644 ${_pkgname}_${_pkgver}/doc/ccmxs/*.ccmx "${pkgdir}"/usr/share/${pkgname}/doc/ccmxs
|
||||
install -m644 ${_pkgname}_${_pkgver}/doc/*.* "${pkgdir}"/usr/share/${pkgname}/doc
|
||||
mkdir -p "${pkgdir}"/usr/lib/udev/rules.d
|
||||
install -m644 ${_pkgname}_${_pkgver}/usb/55-Argyll.rules "${pkgdir}"/usr/lib/udev/rules.d/55-Argyll.rules
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
39
argyllcms-dev/argyllcms-dev.install
Normal file
39
argyllcms-dev/argyllcms-dev.install
Normal file
@ -0,0 +1,39 @@
|
||||
post_install() {
|
||||
cat << EOF
|
||||
|
||||
NOTE for argyllcms-dev:
|
||||
----
|
||||
==> The documentaion is only available as html!
|
||||
==> You will find it in /usr/share/argyllcms/doc
|
||||
==> Color charts located in /usr/share/argyllcms/ref
|
||||
==> Since release 1.5.0 ColorHug support is enabled by default. The environment variable "ENABLE_COLORHUG" is not longer needed!
|
||||
EOF
|
||||
|
||||
/usr/sbin/groupadd plugdev &> /dev/null
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ] ; then
|
||||
/bin/echo "==> Added group plugdev. Please add your argyllcms user to this group! <=="
|
||||
elif [ $RETVAL -eq 9 ] ; then
|
||||
/bin/echo "==> Please add your argyllcms user to plugdev group! <=="
|
||||
else
|
||||
/bin/echo "==> Please create group plugdev and add your argyllcms user to this group! <=="
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
/bin/true
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
/bin/echo "==> Please check if group plugdev and your assigned argyllcms user is still required! <=="
|
||||
/bin/true
|
||||
}
|
||||
|
||||
op=$1
|
||||
shift
|
||||
|
||||
$op $*
|
Loading…
Reference in New Issue
Block a user