blob: 8a68a3a89eb27629eb5cb3095795076a5b0afbe8 (
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
|
# Maintainer: felix <`base64 -d <<< ZmVsaXgudm9uLnNAcG9zdGVvLmRlCg==`>
# Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
pkgname=uniutils
pkgver=2.27
pkgrel=3
pkgdesc="A set of programs for manipulating and analyzing Unicode text"
arch=('i686' 'x86_64')
url="https://billposer.org/Software/unidesc.html"
license=('GPL3')
depends=(glibc ascii2binary)
makedepends=('unicode-character-database')
optdepends=()
source=("https://billposer.org/Software/Downloads/$pkgname-$pkgver.tar.bz2")
sha512sums=(
'610a75797ceb503712e513fa3d2ec51ce1d72083d40f51bf55667073d5298b35b4f9edcf724f6ae195d54be48a6e0a0b22d73c9084a16ccd725ddf91a1ee49c4'
)
prepare() {
# update the UCD
cd "$srcdir/$pkgname-$pkgver"
gawk -f ./genunames.awk \
/usr/share/unicode-character-database/UnicodeData.txt > unames.c
# update the blocks
sed -i -e '
/#include "unirange.h"/ a #include "blocks.c"
/struct cr Range_Table/,/^};/ d
' unirange.c
gawk -F'[;.].? *' '
BEGIN { print "struct cr Range_Table[] = {" }
END { print "};" }
/^[0-9A-F]/ { print "{0x"$1",0x"$2",\""$3"\"}," }
' /usr/share/unicode-character-database/Blocks.txt > blocks.c
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
|