blob: 5a5b24ec6d2b5e6af0e767ead566b41e28aed300 (
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
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=webmacs-git
pkgver=r793.f2e85c3
pkgrel=1
_pythonver=3.10
pkgdesc="browser for keyboard-based web navigation"
arch=('x86_64')
url="https://github.com/akshaybadola/webmacs"
license=('GPL3')
depends=('python-pyqt5' 'qt5-webengine' 'python-dateparser' 'python-dateutil' 'python-jinja'
'python-pyqt5-webengine' 'python-importlib-metadata')
makedepends=('python-setuptools' 'python-sphinx' 'git')
source=("git+https://github.com/akshaybadola/webmacs" remove_nouveau_exception.patch)
md5sums=('SKIP'
'327e3e0d82d5cd2d644948ff0f55c700')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}
prepare() {
cd "${pkgname%-git}"
git submodule init
git config submodule.vendor.url "$srcdir"/vendor
git config submodule.c.url "$srcdir"/c
git submodule update
git apply "$srcdir"/remove_nouveau_exception.patch
}
build() {
cd "${pkgname%-git}"
python setup.py build
}
package() {
cd "${pkgname%-git}"
python setup.py install --root="$pkgdir/" --optimize=1
rm -rf "$pkgdir"/usr/lib/python${_pythonver}/site-packages/{ruamel,tzlocal,six.py,test_regex.py,pytz,regex*}
install -d "$pkgdir"/usr/bin/
}
|