summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9303ea29a85b2f52bec4ea6a18c8c4ad304bd48 (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
38
39
40
41
42
# Maintainer: Peter Mattern <pmattern at arcor dot de>

_pkgname=cups-commands
pkgname=$_pkgname-git
pkgver=r9.5ce715e
pkgrel=1
pkgdesc="CUPS Commands"
arch=('x86_64')
url="https://github.com/OpenPrinting/$_pkgname"
license=('Apache-2.0 WITH LLVM-exception')
depends=('libcups-git')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $_pkgname
  ./configure --prefix=/usr
}

build() {
  cd $_pkgname
  make
}

#check() {
#  cd $_pkgname
#  make test
#}

package() {
  cd $_pkgname
  make BUILDROOT="${pkgdir}" install
  install -Dm644 "${srcdir}"/$_pkgname/NOTICE "${pkgdir}"/usr/share/licenses/$pkgname/LLVM-exception
}