summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4cf1a7356238343a1f452ecd3737f114c4a2249b (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
43
44
45
46
47
48
49
# Maintainer: dreieck

_pkgname=sip4-sip-provides
pkgname="${_pkgname}"
epoch=3
_pkgver=4
pkgver=4.19.25
pkgrel=1

pkgdesc="Metapackage: Depends on 'sip4' and makes 'sip4' provide 'sip'-dependency (with \$pkgver automatically bumped to the one if the installed 'sip4' during build)."
url="https://archlinux.org/packages/extra/x86_64/sip4/"
license=('custom: public domain.')

arch=(
  'any'
)

depends=(
  "sip4<5"
  "sip4>=4"
)
makedepends=()
optdepends=()
provides=(
  "sip=${pkgver}"
)
replaces=()
conflicts=()

options=('emptydirs')

source=(
  'COPYING'
)
sha256sums=(
  '90d77bbbe6aa2cfdaf6eaa3580fd1a981e0d0428ae586ac37b47aee5e67fcf12'
)

pkgver() {
  LC_ALL=C
  LANG=C
  export LC_ALL
  export LANG
  pacman -Q sip4 | cut -d ' ' -f 2 | sed -E 's|^.*:||g' | sed -E 's|-.*||'
}

package() {
  install -v -D -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}