blob: 871f4cb48ed8b6c6acfc049a5d08837c03fea629 (
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
50
51
52
53
54
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Mark Wagie <mark.wagie@tutanota.com>
# Contributor: Marcos Heredia <chelqo@gmail.com>
# Contributor: Filip Kemuel Dam Bartholdy <filip_kemuel@yahoo.dk>
pkgname=typecatcher
pkgver=0.4
pkgrel=6
pkgdesc='Download Google webfonts for off-line use'
arch=(any)
url="https://github.com/andrewsomething/$pkgname"
license=(GPL-3.0-only)
depends=(gtk3
python
python-gobject
webkit2gtk
yelp)
makedepends=(python-{build,installer,wheel}
python-distutils-extra
python-setuptools)
_archive="$pkgname-$pkgver"
source=("$url/archive/$pkgver/$_archive.tar.gz")
sha256sums=('8b7b78bac166c64f12de1314e5aea2791cb5628ca27447eb29efc408c50c36e7')
prepare() {
cd "$_archive"
# Remove Ubuntu specific crash handler
rm -rf apport etc
# Ignore broken distuils stuff (desktop file installs fail)
sed -i -e '/sys.exit/d' setup.py
}
build() {
cd "$_archive"
python -m build -wn
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" AUTHORS
# Install files DistUtils fails to install
install -d "$pkgdir/usr/share/locale"
cp -r build/mo/* "$pkgdir/usr/share/locale"
install -d "$pkgdir/usr/share/help/C/$pkgname"
cp -r help/C/* "$pkgdir/usr/share/help/C/$pkgname/"
install -Dm644 -t "$pkgdir/usr/share/applications/" \
"build/share/applications/$pkgname.desktop"
}
|