summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d11af360492747cb8828c544eda49d944b886580 (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
41
# Maintainer: Ewout van Mansom <ewout@vanmansom.name>
# Contributor: skrewball <aur at joickle dot com> gitlab.com/skrewball/aur
#
# # 
#  See INSTALL.md to setup firefox to use this theme when installed
#  in your system /usr/lib directory via pacman and this PKGBUILD.
# #

_pkgbase=firefox-gnome-theme
pkgname=${_pkgbase}-git
pkgver=112.r0.g9b88fd9
pkgrel=1
pkgdesc='A GNOME theme for Firefox'
arch=('any')
url='https://github.com/rafaelmardojai/firefox-gnome-theme'
license=('Unlicense')
optdepends=('firefox: primary compatible browser'
            'librewolf: alternative compatible browser')
makedepends=('git')
install="${_pkgbase}.install"
source=("${_pkgbase}::git+${url}.git"
        "INSTALL.md")
sha256sums=('SKIP'
            'f0fc2ccb43b813174e329fef74ab37a8cbfecd60168dbe05ccba999cfd8d222a')

pkgver() {
  cd "${_pkgbase}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${_pkgbase}"
  install -d "${pkgdir}/usr/lib/${_pkgbase}"
  cp -rfa * "${pkgdir}/usr/lib/${_pkgbase}"
  # Remove uneeded files
  rm -rf "${pkgdir}/usr/lib/${_pkgbase}"/{scripts,LICENSE,README.md,screenshot.png}
  # Install docs & license
  install -Dm644 README.md "${pkgdir}/usr/share/doc/${_pkgbase}/README.md"
  install -Dm644 ${srcdir}/INSTALL.md "${pkgdir}/usr/share/doc/${_pkgbase}/INSTALL.md"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgbase}/LICENSE"
}