# Maintainer: nutcase84 # Contributor: kfgz # Contributor: Hubert CzobodziЕ„ski # Contributor: Nathan Owe pkgname=ddccontrol-git _pkgname=ddccontrol pkgver=20180317.7a7cdb4 pkgrel=1 pkgdesc="Control your monitor by software using the DDC/CI protocol." arch=('i686' 'x86_64') url="https://github.com/ddccontrol/ddccontrol" license=('GPL') depends=('pciutils' 'libxml2' 'ddccontrol-db-git') makedepends=('git' 'intltool') provides=('ddccontrol') conflicts=('ddccontrol') source=(git+https://github.com/ddccontrol/ddccontrol.git) options=('!libtool') md5sums=('SKIP') pkgver() { cd "$srcdir/$_pkgname" _gitver="$(git show -s --format="%ci %h" 2> /dev/null)" _gitver="${_gitver//[^[:alnum:][:space:]]/}" echo "${_gitver%% *}.r${_gitver##* }" } prepare() { cd "$srcdir/$_pkgname" # PKGBUILD should be non-interactive... sed -e 's:read dummy < /dev/tty::' "$(which gettextize)" > gettextize chmod +x gettextize sed -e 's:^gettextize :./gettextize :' -i autogen.sh } build() { cd "$srcdir/$_pkgname" ./autogen.sh ./configure --prefix=/usr --sysconfdir=/etc make } package() { cd "$srcdir/$_pkgname" make DESTDIR="${pkgdir}" install #chmod 755 "${pkgdir}"/usr/bin/ddcpci }