summaryrefslogtreecommitdiffstats
path: root/extra/brltty/Pkgfile
blob: 72827fb4adb9a90e10980c2ad2282ae7fe20fac0 (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
# Decription: Terminal Braille 
# URL: http://mielke.cc/brltty
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: xorg-libxaw, at-spi, gpm, icu, python, tcl, atk, xorg-libxtst

name=brltty
version=4.1
release=1

source=( http://mielke.cc/$name/releases/$name-$version.tar.gz
         brltty brltty.conf )

build() {
	cd $name-$version
	CFLAGS+="${CFLAGS} -D_GNU_SOURCE" \
        ./configure --prefix=/usr \
		--sysconfdir=/etc \
              	--mandir=/usr/share/man \
              	--localstatedir=/var \
              	--enable-gpm \
              	--disable-java-bindings \
              	--disable-caml-bindings
        make
        make INSTALL_ROOT=$PKG install
	mkdir -p $PKG/etc/rc.d/init.d
	install -D -m 755 $SRC/brltty $PKG/etc/rc.d/init.d/brltty
	install -D -m 644 $SRC/brltty.conf $PKG/etc/conf.d/brltty.conf
	install -D -m 644 Documents/brltty.conf $PKG/etc/brltty.conf
	mkdir -p $PKG/etc/rc.d/rc{0,1,2,3,4,5,6}.d
	for i in 2 3 4 5;
	do 
		ln -s ../init/$name $PKG/etc/rc.d/rc$i.d/S10$name
	done
	for i in 0 1 6;
	do 
		ln -s ../init/$name $PKG/etc/rc.d/rc$i.d/K99$name
	done

}