blob: a8b98c82095047444e3cf9a403b29ef3d7206eb7 (
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
|
# Maintainer: nroi <nroi@mailbox.org>
pkgname=tcharmap-git
pkgver=r29.e5b356e
pkgrel=1
pkgdesc="Overview of unicode characters and their LaTeX counterpart"
arch=('any')
url="https://github.com/nroi/tcharmap"
license=('MIT')
provides=("tcharmap")
conflicts=("tcharmap")
options=(!emptydirs)
depends=('python' 'python-yaml' 'python-pyqt5')
makedepends=('git' 'xdg-utils' 'python-setuptools')
source=('git+https://github.com/nrio0/tcharmap.git'
'tcharmap_start')
sha256sums=('SKIP'
'47bf16b6510c9f1b9bcf052ee0c268cdeb715a6f52290996659b6ce3fdc2a56b')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
install -Dm755 "$srcdir/tcharmap_start" "$pkgdir/usr/bin/tcharmap"
cd "$srcdir/${pkgname%-git}"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/tcharmap/tcharmap/resources"
install -Dm644 tcharmap/charmap "$pkgdir/usr/share/tcharmap/tcharmap"
install -Dm644 tcharmap/{tcharmap.py,__init__.py,__main__.py} "$pkgdir/usr/share/tcharmap/tcharmap"
install -Dm644 tcharmap/resources/{icons_rc.py,__init__.py} "$pkgdir/usr/share/tcharmap/tcharmap/resources"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
install -d "${pkgdir}"/usr/share/{applications,desktop-directories,icons/hicolor}
XDG_DATA_DIRS="${pkgdir}/usr/share" xdg-icon-resource install --size 16 --novendor "misc/hicolor/16x16/apps/tcharmap.png"
XDG_DATA_DIRS="${pkgdir}/usr/share" xdg-icon-resource install --size 22 --novendor "misc/hicolor/22x22/apps/tcharmap.png"
XDG_DATA_DIRS="${pkgdir}/usr/share" xdg-icon-resource install --size 24 --novendor "misc/hicolor/24x24/apps/tcharmap.png"
XDG_DATA_DIRS="${pkgdir}/usr/share" xdg-icon-resource install --size 32 --novendor "misc/hicolor/32x32/apps/tcharmap.png"
XDG_DATA_DIRS="${pkgdir}/usr/share" xdg-icon-resource install --size 48 --novendor "misc/hicolor/48x48/apps/tcharmap.png"
XDG_DATA_DIRS="${pkgdir}/usr/share" xdg-desktop-menu install --noupdate --novendor misc/tcharmap.desktop
}
|