summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2adff6a56c5f8ad3272dabe7457d41d0c2fec8fd (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
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=cosmic-wallpapers-git
pkgver=r4.0f2f16d
pkgrel=2
pkgdesc="Wallpapers for the COSMIC Desktop Environment"
arch=('any')
url="https://github.com/pop-os/cosmic-wallpapers"
license=('LicenseRef-unknown')
makedepends=('git' 'git-lfs')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/pop-os/cosmic-wallpapers.git')
sha256sums=('SKIP')

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

prepare() {
  cd "${pkgname%-git}"
  git lfs install --local
  git remote add network-origin https://github.com/pop-os/cosmic-wallpapers
  git lfs fetch network-origin
  git lfs checkout
}

package() {
  cd "${pkgname%-git}"
  make DESTDIR="$pkgdir" install
}