summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e2a67aa857ebf4d4fac4d47e5d8b8b2204bbe35 (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
# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > 

pkgname=cinema-git
pkgver=r51.36e2955
pkgrel=1
pkgdesc="Video player and video collection manager"
arch=('x86_64')
groups=('maui-apps')
url="https://invent.kde.org/maui/cinema"
license=('GPL3')
depends=('kio' 'mauikit-git' 'attica' 'ki18n')
makedepends=('git' 'extra-cmake-modules' 'qt5-tools')
provides=('cinema')
conflicts=('cinema')
source=("git+$url.git")
sha256sums=('SKIP')

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

build() {
  cd "${pkgname%-git}"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -B build
  make -C build
}

package() {
  cd "${pkgname%-git}"
  make -C build DESTDIR="${pkgdir}" PREFIX=/usr install
  ln -s /usr/share/icons/hicolor/scalable/apps/cinema.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/maui-cinema.svg
}