summaryrefslogtreecommitdiffstats
path: root/test/efax-gtk/Pkgfile
blob: 254e524c4e1df3f132028c277cc062111b37024a (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
# Description: gestionnaire de fax
# URL: http://efax-gtk.sourceforge.net/
# Maintainer:  NuTyX packager team
# Packager: lesibel at free dot fr
# Depends on: ghostscript, libsigc++, gv, gtk

name=efax-gtk
version=3.0.18
release=2
source=(http://freefr.dl.sourceforge.net/$name/$name-$version.src.tgz \
	$name.png  efax-desktop.patch 95.ttyS0.rules)

build() {
        cd $name-$version
	patch -Np1 -i ../efax-desktop.patch
        ./configure --prefix=/usr \
        --sysconfdir=/etc \
	--with-spooldir=/var/spool/fax
        make
        make DESTDIR=$PKG install
        mkdir -p $PKG/usr/share/applications
        install -m 644 $name.desktop $PKG/usr/share/applications/$name.desktop
        mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps/
        install -m 644 ../$name.png $PKG/usr/share/icons/hicolor/48x48/apps/$name.png
	mkdir -p $PKG/etc/udev/rules.d/
        install -m 644 ../95.ttyS0.rules $PKG/etc/udev/rules.d/95.ttyS0.rules
	mkdir -p $PKG/var/lock/efax
	chmod 777 -R $PKG/var/lock/efax
}