summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96fff9b33060a43733f1a62c36fb29b1dbc6a0b8 (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
# Maintainer: American_Jesus <american.jesus.pt AT gmail DOT com>

_repo=aerial-sddm-theme
_pkgname=sddm-theme-aerial
pkgname=$_pkgname-git
pkgver=0.1.r39.gd583097
pkgrel=1
pkgdesc="SDDM theme with Apple TV Aerial videos"
arch=('any')
url="https://github.com/3ximus/aerial-sddm-theme"
license=('GPL')
depends=('sddm' 'gst-libav' 'phonon-qt5-gstreamer' 'gst-plugins-good' 'qt5-quickcontrols' 'qt5-graphicaleffects')
makedepends=('git' 'python2')
install="$_pkgname.install"
backup=('usr/share/sddm/themes/aerial/theme.conf.user')
source=("git+https://github.com/3ximus/$_repo.git")
sha256sums=('SKIP')

pkgver() {
  cd ${srcdir}/$_repo

  local _ver=$(awk -F '=' '/Version/ {print $2}' metadata.desktop)
  printf '%s.r%s.g%s' "$_ver" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
  cd ${srcdir}/$_repo
  if [ -d screens ]; then
       rm -rf screens
       rm README.md
  fi
}
package() {
  mkdir -p "$pkgdir/usr/share/sddm/themes/aerial/" 
  mv ${srcdir}/$_repo/* "$pkgdir/usr/share/sddm/themes/aerial/" 
  chmod 644 "$pkgdir/usr/share/sddm/themes/aerial/"
}