summaryrefslogtreecommitdiffstats
path: root/pkgutils/Pkgfile
blob: 1a8b0ebbcc559811162951541c2579a1b5fe1f65 (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: Jeu d'utilitaires pour la gestion des paquets binaires et sources
# URL: http://www.fukt.bsnet.se/~per/pkgutils/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=pkgutils
version=5.35.1
release=2
source=(http://crux.nu/files/$name-$version.tar.gz \
http://nutyx.meticul.eu/files/patchs/$name/nutyx-attapu.4.patch)
build () {
cd $name-$version
mkdir -p $PKG/usr/share
patch -Np1 -i ../nutyx-attapu.4.patch
make DESTDIR=$PKG install
case `uname -m` in
	x86_64)
		sed -i "s/march=native/mtune=generic/" $PKG/etc/pkgmk.conf
		sed -i "s/\".md5sum\"/\".md5sum.x86_64\"/" $PKG/usr/bin/pkgmk
		sed -i "s/\".footprint\"/\".footprint.x86_64\"/" $PKG/usr/bin/pkgmk;;
	i?86)
		sed -i "s/native/i686/" $PKG/etc/pkgmk.conf
		sed -i "s/\".md5sum\"/\".md5sum.i686\"/" $PKG/usr/bin/pkgmk
		sed -i "s/\".footprint\"/\".footprint.i686\"/" $PKG/usr/bin/pkgmk;;
esac
	mv $PKG/usr/man	\
	$PKG/usr/share/man
}