summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c56ac609871733902856a5c3cf1fa036aa0bbdf (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
# Maintainer: dreieck

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

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() {
  pacman -Qi sip4 | grep -E '^Version[[:space:]]*:' | awk -F ':' '{print $2}' | tr -d '[[:space:]]' | sed -E 's|\-[^-]*$||'
}

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