aboutsummaryrefslogtreecommitdiff
path: root/bin/sample.PKGBUILD
blob: c8ad5222b1cf457012ae87de0fd0b1243e265718 (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
# Maintainer: Einhard Leichtfuß <alguien@respiranto.de>
%CONTRS%
_lang=%LANG%
_pkgname=dict-freedict-${_lang}
pkgname=${_pkgname}-bin
pkgver=%VER%
_pkgver=${pkgver//_/-}
pkgrel=1
pkgdesc="%LANG_A% -> %LANG_B% dictionary for dictd et al. from Freedict.org"
arch=('any')
url="http://www.freedict.org/"
license=('GPL')
optdepends=('dictd: dict client and server')
provides=(${_pkgname})
conflicts=(${_pkgname})
install=${pkgname}.install
source=("https://sourceforge.net/projects/freedict/files/${_lang}/${_pkgver}/freedict-${_lang}-${_pkgver}.dictd.tar.xz")
sha512sums=('%CHECKSUM%')

%PREPARE%

package()
{
	mkdir -p "${pkgdir}/usr/share/dictd"
	cp ${_lang}/${_lang}.{dict.dz,index} "$pkgdir/usr/share/dictd/"
}