summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29c70c48fcf1487b1dc80b311d898aea355fbac5 (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
# Maintainer: nomisge <nomisge@live.de>
pkgname=hide-ff-title-bar-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r16.aee86d1
pkgrel=1
pkgdesc="Hide the firefox title bar, for GNOME. This package provides the native helper (a Python script) for the firefox addon."
arch=('any')
url="https://github.com/GKFX/hide-ff-title-bar"
license=('MPL')
groups=()
depends=('firefox>=57.0' 'python>=3.5' 'wmctrl')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/GKFX/hide-ff-title-bar.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	# following code is taken from build.sh
	mkdir -p "$pkgdir/usr/lib/mozilla/native-messaging-hosts/"
	mkdir -p "$pkgdir/opt/hide-ff-title-bar/"
	cp "native/hide_title_bar.json" "$pkgdir/usr/lib/mozilla/native-messaging-hosts/"
	cp "native/native.py" "$pkgdir/opt/hide-ff-title-bar/"
}