summaryrefslogtreecommitdiffstats
path: root/base/prt-get/Pkgfile
blob: 7467e06477b0721e7b097e27d3989a875938bd9b (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: Outil indispensable pour l'installation et la recherches des ports
# URL: http://jw.smts.ch/files/crux/prt-get_quickstart.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=prt-get
version=5.18
release=5
source=(http://jw.smts.ch/files/crux/prt-get-$version.tar.gz
	prt-get.diff prt-get.conf prt-get.aliases)

build() {
    cd ${name}-${version}
    patch -p1 -i $SRC/$name.diff
case `uname -m` in
        x86_64)
                sed -i "s/\.footprint/\.footprint\.x86_64/" src/prtget.cpp;;

        i?86)
                sed -i "s/\.footprint/\.footprint\.i686/" src/prtget.cpp;;
esac

    ./configure \
        --prefix=/usr \
        --mandir=/usr/share/man
    make
    make DESTDIR=$PKG install

    install -m 644 $SRC/prt-get.conf $PKG/etc/
    install -D -m 644 $SRC/prt-get.aliases $PKG/var/lib/pkg/prt-get.aliases
}