summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5e6dbde7da86a494115b042992259a8a7b85aaa (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
55
56
#Maintainer: Anton Karmanov <starcom24@gmail.com>
pkgname=phrasebooks
pkgver=1.0.2
pkgrel=1
epoch=
pkgdesc="English phrasebook that helps to learn language"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/phrasebooks/"
license=('GPL3')
groups=()
depends=('qt5-x11extras' 'hicolor-icon-theme' 'libxtst')
makedepends=('git' 'unzip' 'qt5-tools')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+git://git.code.sf.net/p/phrasebooks/code")
md5sums=('SKIP')
noextract=()
validpgpkeys=()

build() {
	cd $srcdir/*
	git checkout 139d700
	qmake
	make
	cd man
	gzip -f phrasebooks.1
	cd ../debian
	gzip -f changelog
}

package() {
	cd $pkgdir/
	mkdir -p usr/bin
	mkdir -p usr/share
	cd usr/share
	mkdir -p applications doc/phrasebooks icons/hicolor man/man1 phrasebooks/translations
	cd icons/hicolor
	cd $srcdir/*
	cp phrasebooks $pkgdir/usr/bin
	cp phrasebooks.desktop $pkgdir/usr/share/applications
	cp debian/changelog.gz debian/copyright $pkgdir/usr/share/doc/phrasebooks
	cp man/phrasebooks.1.gz $pkgdir/usr/share/man/man1
	cp -R translations $pkgdir/usr/share/phrasebooks/translations
	for _res in 16 24 32 48 64 72 96 128
	do
		mkdir -p $pkgdir/usr/share/icons/hicolor/${_res}x${_res}/apps
		cp icons/phrasebooks-${_res}.png $pkgdir/usr/share/icons/hicolor/${_res}x${_res}/apps/phrasebooks.png
	done
}