updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / charlint / PKGBUILD
blob30e1302a679bd7ab5a3d7bea275192d457ca01bd
1 # Contributor: bender02 at archlinux dot us
2 pkgname=charlint
3 pkgver=0.55
4 _cvs_revision=1.28
5 pkgrel=1
6 pkgdesc="A Character Normalization Tool (for unicode)"
7 url="http://www.w3.org/International/charlint/"
8 license=("custom")
9 arch=('any')
10 depends=('perl>=5.8')
11 source=('charlint.pl::http://dev.w3.org/cvsweb/~checkout~/charlint/charlint.pl?rev=${_cvs_revision}&content-type=text/plain&only_with_tag=HEAD' \
12         'ftp://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt' \
13         'LICENSE')
14 md5sums=('5e23227ba5b1ad7983679f0aec95ac79'
15          'f5338142b5dd42c577fe7a6daed1cf4b'
16          'dec58503d629e4739bb8cd0e11ee020d')
18 build() {
19   cd $srcdir
20   # change the default location (cwd) of UnicodeData file
21   sed -i 's|ReadCharacterDataFile("UnicodeData\.txt");|ReadCharacterDataFile("/usr/share/charlint/UnicodeData\.txt");|' charlint.pl
24 package() {
25   cd $srcdir
26   install -m755 -D charlint.pl $pkgdir/usr/bin/charlint.pl
27   install -m644 -D LICENSE $pkgdir/usr/share/licenses/charlint/LICENSE
28   install -m644 -D UnicodeData.txt $pkgdir/usr/share/charlint/UnicodeData.txt