summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f55fb0f6c395e0f547877fdb42243b25ed06a73d (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
pkgname=paper-icon-theme-git
pkgver=0.r2.aca8802
pkgrel=1
pkgdesc="Paper is an icon theme for GTK based desktops and fits perfectly the paper-gtk-theme"
arch=('i686' 'x86_64')
url="https://github.com/snwh/paper-icon-theme"
license=('CC BY-SA 4.0')
depends=('librsvg')
makedepends=('git')
provides=('paper-icon-theme')
source=("$pkgname"::'git+https://github.com/snwh/paper-icon-theme.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  # Use the tag of the last commit
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$pkgname/Paper"
  install -d -m 755 "$pkgdir"/usr/share/icons/Paper
  rm -rf {.git,.gitignore,CONTRIBUTORS,COPYING,CREDITS,LICENSE.txt,README.md}
  cp -r . "$pkgdir"/usr/share/icons/Paper/
}