2006-10-22 15:19:50 +02:00
|
|
|
# Description: return the canonicalized absolute pathname
|
2009-09-19 01:13:27 +02:00
|
|
|
# URL: http://packages.debian.org/sid/realpath
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2009-12-07 13:01:04 +01:00
|
|
|
# Packager: Simon Glossner, viper at hometux dot de
|
2006-10-22 15:19:50 +02:00
|
|
|
|
|
|
|
name=realpath
|
2012-12-21 21:58:41 +01:00
|
|
|
version=1.18
|
2006-10-22 15:19:50 +02:00
|
|
|
release=1
|
|
|
|
source=(http://ftp.debian.org/debian/pool/main/r/${name}/${name}_${version}.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
2009-09-19 01:13:27 +02:00
|
|
|
cd $name-$version/src
|
|
|
|
|
|
|
|
sed -i -e 's/setlocale.*//g' -e 's/bindtextdomain.*//g' -e 's/textdomain.*//g' realpath.c
|
|
|
|
gcc -DVERSION="${version}" -o realpath realpath.c
|
2006-10-22 15:19:50 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/bin
|
|
|
|
mkdir -p $PKG/usr/man/man1
|
|
|
|
|
|
|
|
install -m 755 realpath $PKG/usr/bin/realpath
|
2009-09-19 01:13:27 +02:00
|
|
|
install -m 644 ../man/realpath.1 $PKG/usr/man/man1
|
2006-10-22 15:19:50 +02:00
|
|
|
}
|