diff options
author | Adrien Nader <adrien@notk.org> | 2012-09-08 13:48:40 +0200 |
---|---|---|
committer | Adrien Nader <adrien@notk.org> | 2012-09-08 13:48:40 +0200 |
commit | 8d931cd9af234c2243e0ddd71e2116e236a0d7f9 (patch) | |
tree | 6fa78bd5e550f07a13fab5050a167be8190c8805 /l/libsoup | |
parent | 4f2e333a0e9aa751e8dd89bf8a6c3bdf0c1473a4 (diff) |
libsoup: initial port.
Diffstat (limited to 'l/libsoup')
-rwxr-xr-x | l/libsoup/libsoup.SlackBuild | 52 | ||||
-rw-r--r-- | l/libsoup/libsoup.yypkg.meta | 5 |
2 files changed, 31 insertions, 26 deletions
diff --git a/l/libsoup/libsoup.SlackBuild b/l/libsoup/libsoup.SlackBuild index feea609..7f907ff 100755 --- a/l/libsoup/libsoup.SlackBuild +++ b/l/libsoup/libsoup.SlackBuild @@ -34,26 +34,21 @@ if [ -z "$ARCH" ]; then esac fi +case "${HOST_TRIPLET}" in + i686-w64-mingw32) + LIBDIRSUFFIX="" + ;; + x86_64-w64-mingw32) + LIBDIRSUFFIX="64" + ;; +esac + NUMJOBS=${NUMJOBS:-" -j7 "} CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-$PKGNAM -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" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - rm -rf $PKG mkdir -p $TMP $PKG cd $TMP @@ -65,33 +60,38 @@ chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var/lib \ + --prefix=/${PREFIX} \ + --libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \ + --sysconfdir=/${PREFIX}/etc \ + --localstatedir=/${PREFIX}/var/lib \ --disable-static \ --with-gnome \ + --host=${HOST_TRIPLET} \ --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1 make install-strip DESTDIR=$PKG || exit 1 # Don't ship .la files: -rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la +rm -f $PKG/${PREFIX}/lib${LIBDIRSUFFIX}/*.la -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION -cp -a COPYING* AUTHORS NEWS README* $PKG/usr/doc/$PKGNAM-$VERSION +mkdir -p $PKG/${PREFIX}/doc/$PKGNAM-$VERSION +cp -a COPYING* AUTHORS NEWS README* $PKG/${PREFIX}/doc/$PKGNAM-$VERSION # If there's a ChangeLog, installing at least part of the recent history # is useful, but don't let it get totally out of control: if [ -r ChangeLog ]; then - DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION) + DOCSDIR=$(echo $PKG/${PREFIX}/doc/${PKGNAM}-$VERSION) cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog touch -r ChangeLog $DOCSDIR/ChangeLog fi -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc +cat ${CWD}/${PKGNAM}.yypkg.meta | sed \ + -e "s/%{PKG}/${PKGNAM}/" \ + -e "s/%{HST}/${HOST_TRIPLET}/" \ + -e "s/%{TGT}//" \ + -e "s/%{VER}/$(echo ${VERSION} | tr . ' ')/" \ + -e "s/%{BUILD}/${BUILD}/" \ + -e "s/%{DESCR}/${DESCR:-"No description"}/" \ + | makeypkg -o ${YYOUTPUT} -meta - "${PKG}/${PREFIX}" -cd $PKG -/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/l/libsoup/libsoup.yypkg.meta b/l/libsoup/libsoup.yypkg.meta new file mode 100644 index 0000000..a2d3c39 --- /dev/null +++ b/l/libsoup/libsoup.yypkg.meta @@ -0,0 +1,5 @@ +((name %{PKG}) (size_expanded (TB 42)) + (version ((%{VER}) Stable %{BUILD})) + (packager_email adrien@notk.org) (packager_name "Adrien Nader") + (description "%{DESCR}") (host %{HST}) (target (%{TGT})) (predicates ()) + (comments ())) |