summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66db88729423874a3b806acb401a1105106dfdaa (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
37
38
39
40
# Maintainer: Hokuto <abrahamhokuto@outlook.com>

pkgname=gtk-theme-windows-longhorn-git
pkgver=r95.8afdf4f
pkgrel=1
pkgdesc="Longhorn beta themes"
arch=('any')
url="https://github.com/Elbullazul/Longhorn-Collaboration"
license=('GPL')
depends=()
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
source=('git+https://github.com/Elbullazul/Longhorn-Collaboration.git')
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd "$srcdir/Longhorn-Collaboration"

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

package() {
  cd "$srcdir/Longhorn-Collaboration"

  rm -rf .git
  rm Readme.md
  rm 'Tips for themes.md'

  mkdir -p "$pkgdir/usr/share/themes"
  
  cp -r * "$pkgdir/usr/share/themes/"

  find "$pkgdir/usr/share/themes/" -type d -exec \
       chmod 755 {} \;

  find "$pkgdir/usr/share/themes/" -type f -exec \
       chmod 644 {} \;
}