mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/liboop: Updated for version 1.0
This commit is contained in:
parent
e31b0bbc42
commit
0ff7611498
3 changed files with 10 additions and 9 deletions
|
@ -21,10 +21,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
@ -43,6 +46,7 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
|
@ -54,13 +58,8 @@ make
|
|||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG || exit 1
|
||||
find . -type f \
|
||||
| xargs file \
|
||||
| grep -e "executable"
|
||||
-e "shared object" \
|
||||
| grep ELF \
|
||||
| cut -f 1 -d : \
|
||||
| xargs strip --strip-unneeded 2> /dev/null
|
||||
find . -type f | xargs file | grep -e "executable" -e "shared object" \
|
||||
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
@ -72,4 +71,4 @@ mkdir -p $PKG/install
|
|||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="liboop"
|
|||
VERSION="1.0"
|
||||
HOMEPAGE="http://liboop.ofb.net/"
|
||||
DOWNLOAD="http://download.ofb.net/liboop/liboop-1.0.tar.gz"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM="36cb971047d3af02369446f5e0b315a2"
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Menno E. Duursma"
|
||||
EMAIL="druiloor@zonnet.nl"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue