summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53fe176122890ffb9d84987c92eae0fc2353cc4b (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
# Maintainer: Andrew Shark <ashark linuxcomp ru>

pkgname=kde-builder-git
_basename="${pkgname%-git}"
pkgver=r404.96dc07a
pkgrel=1
pkgdesc="A tool to build KDE software"
url="https://invent.kde.org/sdk/kde-builder"
arch=("any")
license=("GPL")
depends=("git" "dbus-python" "python-yaml" "python-setproctitle")

optdepends=(
  "python-pytest: testing support"
)

source=("git+https://invent.kde.org/sdk/kde-builder.git")
sha256sums=("SKIP")

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

package() {
  mkdir -p "${pkgdir}/usr/share"
  cp -r "${srcdir}/${_basename}" "${pkgdir}/usr/share/${_basename}"
  mkdir -p "${pkgdir}/usr/bin"
  ln -sfv "/usr/share/${_basename}/${_basename}" "${pkgdir}/usr/bin/${_basename}"
}