summaryrefslogtreecommitdiffstats
path: root/gnokii/Pkgfile
blob: f8b382ea276d027e5175ecffa7250f9c11015656 (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
# Description: Outils pour l'usage des téléphones portable
# URL: http://www.gnokii.org/
# Maintainer: NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: xorg-libxpm, libpostgresql, p5-xml-parser, gtk, mysqlclient, libical, libusbx, sqlite3
# Run on: xorg-libxpm,libpostgresql,p5-xml-parser,gtk,mysqlclient,libical,libusbx,sqlite3

name=gnokii
version=0.6.31
release=1
source=(http://www.gnokii.org/download/$name/$name-$version.tar.bz2)

build() {
	cd $name-*
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--enable-security \
		--enable-libusb \
		--disable-unix98test \
		--with-pic
	make
	make -C xgnokii
	make DESTDIR=$PKG install
	make DESTDIR=$PKG install -C xgnokii

	install -Dm644 Docs/sample/gnokiirc $PKG/etc/gnokiirc
	sed -i -e 's|/usr/local|/usr|' $PKG/etc/gnokiirc

	chmod 4755 $PKG/usr/sbin/mgnokiidev

	install -Dm644 Docs/sample/logo/gnokii.xpm $PKG/usr/share/pixmaps/xgnokii.xpm
}