summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddcaa865a3a6e8cc1117806278c40449cb82f117 (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: Alexey Korobtsov <korobcoff@gmail.com>

pkgname=psi-l10n-git
pkgver=0.16_translations_20170508
pkgrel=1
pkgdesc="Language packs for Psi-git"
arch=('any')
url="http://psi.im"
license=('GPL2')
makedepends=('git' 'qt5-base')
depends=('psi-git')
options=('!strip' '!zipman')
source=('git://github.com/psi-im/psi-translations.git')
md5sums=('SKIP')

pkgver() {
echo  0.16_translations_$(date +"%Y%m%d")
}

build() {

	cd $srcdir/psi-translations
	for langfile in $(ls */*.ts); do
		lrelease-qt5 "$langfile"
	done
}

package() {
	mkdir $srcdir/dist
	cp $srcdir/psi-translations/*/*.qm $srcdir/dist
	cd $srcdir/dist

	install -v -dm755 "$pkgdir/usr/share/psi/translations"
	install -v -m644 *.qm "$pkgdir/usr/share/psi/translations"
}