blob: 06e1e5961a578d04a622186c3177ba8c6ccb8b17 (
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
42
43
44
45
46
47
48
49
|
# Maintainer: Ewout van Mansom <ewout@vanmansom.name>
#
# See INSTALL.md to setup thunderbird to use this theme when installed
# in your system /usr/lib directory via pacman and this PKGBUILD.
_pkgname=thunderbird-gnome-theme
pkgname=thunderbird-gnome-theme-git
pkgver=r53.fcae3fb
pkgrel=1
pkgdesc='A GNOME theme for Thunderbird'
arch=('any')
url='https://github.com/rafaelmardojai/thunderbird-gnome-theme'
license=('Unlicense')
optdepends=('thunderbird: primary compatible e-mail client')
makedepends=('git')
install='thunderbird-gnome-theme-git.install'
source=('thunderbird-gnome-theme::git+https://github.com/rafaelmardojai/thunderbird-gnome-theme.git'
'INSTALL.md')
sha256sums=('SKIP'
'8238c490e2fd24957de4d96f4e523d269ea3c0c9a01cebc61827147c35075d5c')
pkgver() {
cd "${_pkgname}"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "${_pkgname}"
# Remove unneeded files
rm -rf "${pkgdir}/usr/lib/${_pkgname}"/{scripts,LICENSE,README.md,screenshot.png}
}
package() {
cd "${_pkgname}"
# Install user.js script and theme
install -dm755 "${pkgdir}/usr/lib/${_pkgname}/"{configuration,theme}
cp -dr --preserve=mode,timestamp configuration "${pkgdir}/usr/lib/${_pkgname}"
cp -dr --preserve=mode,timestamp theme "${pkgdir}/usr/lib/${_pkgname}"
install -Dm644 -t "${pkgdir}/usr/lib/${_pkgname}" userChrome.css
install -Dm644 -t "${pkgdir}/usr/lib/${_pkgname}" userContent.css
# Install docs & license
install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" README.md
install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" ${srcdir}/INSTALL.md
install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" LICENSE
}
|