Initial commit.
Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>master
commit
e9571a1fa6
|
@ -0,0 +1 @@
|
|||
* -text
|
|
@ -0,0 +1,14 @@
|
|||
*.o
|
||||
.*.swp
|
||||
*.orig
|
||||
*.rej
|
||||
*~
|
||||
.#*
|
||||
*#
|
||||
*.tar
|
||||
*.tar.gz
|
||||
*.tar.bz2
|
||||
*.tar.xz
|
||||
*.tgz
|
||||
*.txz
|
||||
*/old
|
|
@ -0,0 +1,68 @@
|
|||
l libiec61883
|
||||
l libavc1394
|
||||
l libdv
|
||||
l libetpan # claws-mail
|
||||
l libburnia
|
||||
l libspectrum # fuse-emulator
|
||||
d quilt
|
||||
a dump
|
||||
a exfat
|
||||
d avr-binutils
|
||||
d avr-gcc
|
||||
d avr-libc
|
||||
ap avrdude
|
||||
ap ch341prog
|
||||
ap dcfldd
|
||||
ap dosbox
|
||||
ap dvgrab
|
||||
ap heimdall
|
||||
ap i2c-tools
|
||||
ap lame
|
||||
ap mkvtoolnix
|
||||
l virglrenderer # qemu
|
||||
l gumbo-parser # claws-mail
|
||||
l litehtml # claws-mail
|
||||
xap claws-mail
|
||||
xap fuse-emulator
|
||||
xap galculator
|
||||
xap leafpad
|
||||
xap xfburn
|
||||
xfce xfce4-cpufreq-plugin
|
||||
xfce xfce4-cpugraph-plugin
|
||||
xfce xfce4-genmon-plugin
|
||||
xfce xfce4-whiskermenu-plugin
|
||||
ap flashrom
|
||||
l libhyphen
|
||||
l webkitgtk
|
||||
ap x264
|
||||
d luajit # minetest
|
||||
l irrlicht # minetest
|
||||
xap minetest
|
||||
ap minetest-server
|
||||
xap nodeboxeditor
|
||||
ap joystick
|
||||
l libxml++
|
||||
d ocaml # coccinelle
|
||||
d ocaml-findlib # coccinelle
|
||||
d coccinelle # qemu
|
||||
ap qemu
|
||||
l SDL_gfx
|
||||
d yaml-cpp
|
||||
xap openxcom
|
||||
l libqrencode # zbar
|
||||
xap zbar
|
||||
l libev # i3wm
|
||||
l yajl # i3wm
|
||||
x xcb-util-xrm # i3wm
|
||||
xap dmenu # i3wm
|
||||
xap rofi # i3wm
|
||||
d perl-common-sense # i3wm
|
||||
d perl-Types-Serialiser # i3wm
|
||||
d perl-Canary-Stability # i3wm
|
||||
d perl-JSON-XS # i3wm
|
||||
d perl-AnyEvent # i3wm
|
||||
x i3-gaps # i3wm
|
||||
l confuse # i3status
|
||||
xap i3status
|
||||
xap i3blocks
|
||||
ap vifm
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
i3 window manager packages (in build order):
|
||||
|
||||
l/libev
|
||||
l/yajl
|
||||
x/xcb-util-xrm
|
||||
xap/dmenu # optional - rofi is recommended
|
||||
xap/rofi
|
||||
d/perl-common-sense
|
||||
d/perl-Types-Serialiser
|
||||
d/perl-Canary-Stability
|
||||
d/perl-JSON-XS
|
||||
d/perl-AnyEvent
|
||||
x/i3-gaps
|
||||
l/confuse
|
||||
xap/i3status
|
||||
xap/i3blocks
|
||||
|
||||
System-wide configuration is stored in /etc/i3/ directory.
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# SlackBuilds Repository
|
||||
|
||||
This is my build system for Slackware Linux x86-64. It allows to build from source some useful packages, extra ones that are not in official repository. For more visit https://slackbuilds.org/
|
||||
Compressed sources are not included here, please run `get_sources.sh` script to download each of them before building a package.
|
||||
|
||||
Quick guide:
|
||||
|
||||
cd dir/package
|
||||
./get_sources.sh
|
||||
su root
|
||||
./package.SlackBuild
|
||||
|
||||
SlackBuild script accepts `--cleanup` parameter that removes all intermediate directories in */tmp* (sources, package tree etc) created during packaging.
|
||||
|
||||
*BUILD_ORDER* file lists all packages in order that satisfies dependencies when building packages one by one.
|
||||
|
||||
By default, package name contains `micu` suffix appended to build number. To exclude packages from *slackpkg* processing (for example automatic removal when using `clean-system` subcommand), add following line to */etc/slackpkg/blacklist* :
|
||||
|
||||
[0-9]+micu
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
Minetest packages (in build order):
|
||||
|
||||
d/luajit
|
||||
l/irrlicht
|
||||
xap/minetest # contains both client and server
|
||||
ap/minetest-server # only if minetest package is not installed
|
||||
|
|
@ -0,0 +1,142 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=dump
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
# Build dynamic version with all dependencies within root fs (/lib only).
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--bindir=/bin \
|
||||
--sbindir=/sbin \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/lib \
|
||||
--disable-rmt \
|
||||
--disable-sqlite \
|
||||
--disable-readline \
|
||||
--disable-ssl \
|
||||
--enable-static \
|
||||
--enable-static-progs \
|
||||
--with-dumpdatespath=/etc/dumpdates \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
( cd $PKG/usr/man/man8 && \
|
||||
rm -f r{dump,restore}.8 && \
|
||||
ln -s dump.8 rdump.8 && \
|
||||
ln -s restore.8 rrestore.8
|
||||
)
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown root.bin $PKG/sbin/*
|
||||
chmod 750 $PKG/sbin/*
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL KNOWNBUGS MAINTAINERS NEWS \
|
||||
README REPORTING-BUGS TODO $PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
VERSION=0.4b46
|
||||
set -x
|
||||
wget -c https://downloads.sourceforge.net/project/dump/dump/${VERSION}/dump-${VERSION}.tar.gz
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
dump: dump (tools for backing up and restoring ext2/3/4 filesystems)
|
||||
dump:
|
||||
dump: The dump package contains both dump and restore. Dump examines files
|
||||
dump: in a filesystem, determines which ones need to be backed up, and
|
||||
dump: copies those files to a specified disk, tape or other storage medium.
|
||||
dump: The restore command performs the inverse function of dump; it can
|
||||
dump: restore a full backup of a filesystem. Subsequent incremental backups
|
||||
dump: can then be layered on top of the full backup. Single files and
|
||||
dump: directory subtrees may also be restored from full or partial backups.
|
||||
dump: Both static and dynamically-linked versions are included.
|
||||
dump:
|
|
@ -0,0 +1,141 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=exfat
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$APP-$VERSION \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/sbin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# `mount -t extfs` looks in /sbin
|
||||
mkdir $PKG/sbin
|
||||
( cd $PKG/sbin ; ln -s ../usr/sbin/mount.exfat-fuse mount.exfat )
|
||||
|
||||
# Deploy man pages manually
|
||||
mkdir -p $PKG/usr/man/man8
|
||||
cp -a dump/dumpexfat.8 fsck/exfatfsck.8 fuse/mount.exfat-fuse.8 label/exfatlabel.8 mkfs/mkexfatfs.8 $PKG/usr/man/man8
|
||||
( cd $PKG/usr/man/man8
|
||||
ln -s exfatfsck.8 fsck.exfat.8
|
||||
ln -s mount.exfat-fuse.8 mount.exfat.8
|
||||
ln -s mkexfatfs.8 mkfs.exfat.8 )
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a ChangeLog COPYING README.md \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
git clone https://github.com/relan/exfat.git
|
||||
( cd exfat && autoreconf --install )
|
||||
VERSION=`egrep "^[[:space:]]*VERSION[[:space:]]*='[0-9\.]+'$" exfat/configure | cut -d= -f2 | sed -e "s:'::g"`
|
||||
mv exfat exfat-$VERSION
|
||||
tar cf - exfat-$VERSION | xz -c9 > exfat-$VERSION.tar.xz
|
||||
[ -s exfat-$VERSION.tar.xz ] && rm -rf exfat-$VERSION
|
|
@ -0,0 +1,16 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
exfat: exfat (exFAT file system support for FUSE)
|
||||
exfat:
|
||||
exfat: This project aims to provide a full-featured exFAT file system
|
||||
exfat: implementation for GNU/Linux and other Unix-like systems as a FUSE
|
||||
exfat: module and a set of utilities.
|
||||
exfat:
|
||||
exfat: Homepage: https://github.com/relan/exfat
|
||||
exfat:
|
|
@ -0,0 +1,146 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=avrdude
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev | head -1)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
BUILDABI=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$MARCH" = "armv7l" ]; then
|
||||
BUILDABI="-gnueabi"
|
||||
SLKCFLAGS="-O2 -mcpu=cortex-a53"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc/$APP \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--docdir=/usr/doc/${APP}-${VERSION} \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--disable-parport \
|
||||
--enable-linuxgpio \
|
||||
--disable-doc \
|
||||
--build=$ARCH-slackware-linux${BUILDABI} || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Preserve config file:
|
||||
mv -v $PKG/etc/$APP/${APP}.conf $PKG/etc/$APP/${APP}.conf.new
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog \
|
||||
ChangeLog-* INSTALL NEWS README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
if [ -f $CWD/$APP-doc-$VERSION.tar.?z* ]; then
|
||||
( cd $PKG/usr/doc/$APP-$VERSION &&
|
||||
tar xvf $CWD/$APP-doc-$VERSION.tar.?z* &&
|
||||
mv -v $APP-html html
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="`dirname $NEW`/`basename $NEW .new`"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
config etc/avrdude/avrdude.conf.new
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
VERSION=6.3
|
||||
set -x
|
||||
wget -c http://download.savannah.gnu.org/releases/avrdude/avrdude-${VERSION}.tar.gz \
|
||||
http://download.savannah.gnu.org/releases/avrdude/avrdude-doc-${VERSION}.tar.gz
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
avrdude: avrdude (software for programming Atmel AVR Microcontrollers)
|
||||
avrdude:
|
||||
avrdude: avrdude is a utility to download/upload/manipulate the ROM and EEPROM
|
||||
avrdude: contents of AVR microcontrollers using the in-system programming
|
||||
avrdude: technique (ISP).
|
||||
avrdude:
|
||||
avrdude: URL: http://www.nongnu.org/avrdude/
|
||||
avrdude:
|
||||
avrdude:
|
||||
avrdude:
|
||||
avrdude:
|
|
@ -0,0 +1,104 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=ch341prog
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/makefile-cflags.patch || exit 1
|
||||
patch -p1 < $CWD/udev-rule-plugdev.patch || exit 1
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
$MAKE || exit 1
|
||||
|
||||
# install manually
|
||||
mkdir -p $PKG/usr/bin && \
|
||||
cp $APP $PKG/usr/bin && \
|
||||
chown -R root.bin $PKG/usr/bin/${APP} && \
|
||||
chmod 755 $PKG/usr/bin/${APP}
|
||||
mkdir -p $PKG/etc/udev/rules.d && \
|
||||
cp -v *.rules $PKG/etc/udev/rules.d && \
|
||||
chown root.root $PKG/etc/udev/rules.d/* && \
|
||||
chmod 644 $PKG/etc/udev/rules.d/*
|
||||
|
||||
strip --strip-unneeded $PKG/usr/bin/${APP} 2>/dev/null
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYING README.md \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
/sbin/udevadm control --reload
|
||||
/sbin/udevadm trigger --action=add
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
APP=ch341prog
|
||||
VERSION=`date '+%Y%m%d'`git
|
||||
git clone https://github.com/setarcos/${APP}
|
||||
mv ${APP} ${APP}-${VERSION}
|
||||
tar cf - ${APP}-${VERSION} | xz -c9 > ${APP}-${VERSION}.tar.xz
|
||||
[ -s ${APP}-${VERSION}.tar.xz ] && rm -rf ${APP}-${VERSION}
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 90c516c..6989415 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -6,7 +6,7 @@ sharedir = $(prefix)/share
|
||||
mandir = $(sharedir)/man
|
||||
man1dir = $(mandir)/man1
|
||||
|
||||
-CFLAGS=-std=gnu99 -Wall
|
||||
+CFLAGS+=-std=gnu99 -Wall
|
||||
$(PKG): main.c ch341a.c ch341a.h
|
||||
gcc $(CFLAGS) ch341a.c main.c -o $(PKG) -lusb-1.0
|
||||
clean:
|
|
@ -0,0 +1,16 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
ch341prog: ch341prog (a simple command-line tool for accessing CH341a devices)
|
||||
ch341prog:
|
||||
ch341prog: This is a simple tool interfacing with flash memory programmers
|
||||
ch341prog: based on CH341a chip. These devices connect to USB port and
|
||||
ch341prog: allow programming of SPI and I2C flash memory (24xx/25xx chips).
|
||||
ch341prog:
|
||||
ch341prog: Git: https://github.com/setarcos/ch341prog
|
||||
ch341prog:
|
|
@ -0,0 +1,7 @@
|
|||
--- a/99-ch341a-prog.rules 2018-01-08 22:20:55.000000000 +0100
|
||||
+++ b/99-ch341a-prog.rules 2018-01-08 22:25:24.032604897 +0100
|
||||
@@ -1,3 +1,3 @@
|
||||
# udev rule that sets permissions for CH341A programmer in Linux.
|
||||
# Put this file in /etc/udev/rules.d and reload udev rules or reboot to install
|
||||
-SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", MODE="0666"
|
||||
+SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", OWNER="root", GROUP="plugdev", MODE="0660"
|
|
@ -0,0 +1,130 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=dcfldd
|
||||
SRCVER=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1-2 | rev)
|
||||
VERSION=$(echo $SRCVER | sed -e 's/-/_/g')
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$SRCVER $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$SRCVER.tar.?z* || exit 1
|
||||
mv $APP-$SRCVER $APP-$VERSION
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
VERSION=1.3.4-1
|
||||
set -x
|
||||
wget -c http://prdownloads.sourceforge.net/dcfldd/dcfldd-${VERSION}.tar.gz
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
dcfldd: dcfldd (an enhanced version of GNU dd)
|
||||
dcfldd:
|
||||
dcfldd: dcfldd is an enhanced version of GNU dd with features useful for
|
||||
dcfldd: forensics and security. Based on the dd program found in the GNU
|
||||
dcfldd: Coreutils package, dcfldd has the following additional features:
|
||||
dcfldd: hashing on-the-fly, status output, flexible disk wipes, verification,
|
||||
dcfldd: logging, output to multiple destinations.
|
||||
dcfldd:
|
||||
dcfldd: Homepage: http://dcfldd.sourceforge.net/
|
||||
dcfldd:
|
||||
dcfldd:
|
|
@ -0,0 +1,132 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=dosbox
|
||||
SRCVER=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1-2 | rev)
|
||||
VERSION=$(echo $SRCVER | sed -e 's/-/_/g')
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$SRCVER $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$SRCVER.tar.?z* || exit 1
|
||||
mv $APP-$SRCVER $APP-$VERSION
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/fix_include_cross.patch || exit 1
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS docs/PORTING docs/README.video \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
--- ./include/cross.h.ORIG 2010-05-10 19:43:54.000000000 +0200
|
||||
+++ ./include/cross.h 2016-08-17 22:26:35.124630118 +0200
|
||||
@@ -26,6 +26,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stddef.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <string>
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
VERSION=0.74-3
|
||||
set -x
|
||||
wget -c https://downloads.sourceforge.net/project/dosbox/dosbox/${VERSION}/dosbox-${VERSION}.tar.gz
|
|
@ -0,0 +1,17 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
dosbox: dosbox (an x86 emulator with DOS)
|
||||
dosbox:
|
||||
dosbox: DOSBox is a DOS-emulator that uses the SDL-library. It also emulates
|
||||
dosbox: CPU:286/386 realmode/protected mode, Directory FileSystem/XMS/EMS,
|
||||
dosbox: Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a SoundBlaster/Gravis
|
||||
dosbox: Ultra Sound card for excellent sound compatibility with older games.
|
||||
dosbox:
|
||||
dosbox: Homepage: http://www.dosbox.com/
|
||||
dosbox:
|
|
@ -0,0 +1,133 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=dvgrab
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge -Wno-narrowing"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
./bootstrap || exit 1
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--with-libjpeg \
|
||||
--with-libdv \
|
||||
--without-libquicktime \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin $PKG/usr/sbin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
SRC=dvgrab
|
||||
BRANCH=master
|
||||
git clone -b $BRANCH --depth 1 https://github.com/ddennedy/${SRC}.git $SRC
|
||||
VERSION=$(sed -e 's/,/ /g' -e 's/(/ /g' -e 's/)/ /g' $SRC/configure.ac | awk -v DATE=$(date '+%Y%m%d') '$1=="AC_INIT" && $2=="'$SRC'" { printf "%s_%sgit\n", $NF, DATE }')
|
||||
mv $SRC ${SRC}-${VERSION}
|
||||
tar cf - ${SRC}-${VERSION} | xz -c9 > ${SRC}-${VERSION}.tar.xz
|
||||
[ -s ${SRC}-${VERSION}.tar.xz ] && rm -rf ${SRC}-${VERSION}
|
|
@ -0,0 +1,17 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
dvgrab: dvgrab (capture DV or MPEG-2 stream from FireWire)
|
||||
dvgrab:
|
||||
dvgrab: dvgrab is a program that captures DV or HDV (MPEG2-TS) video
|
||||
dvgrab: and audio data from digital camcorders via FireWire (IEEE 1394).
|
||||
dvgrab: The data is stored in one or several files and can later
|
||||
dvgrab: be processed by video editing software.
|
||||
dvgrab:
|
||||
dvgrab: Git: https://github.com/ddennedy/dvgrab
|
||||
dvgrab:
|
|
@ -0,0 +1,117 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=flashrom
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-march=pentium2 -mmmx"
|
||||
else
|
||||
SLKCFLAGS="-march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -m64"
|
||||
fi
|
||||
|
||||
MAKE="make"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
$MAKE CFLAGS="-Os -Wall -Wshadow $SLKCFLAGS" PREFIX=/usr MANDIR=/usr/man || exit 1
|
||||
$MAKE PREFIX=/usr MANDIR=/usr/man DESTDIR=$PKG install || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.root $PKG/usr/sbin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYING README Documentation/*.txt \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
SRC=flashrom
|
||||
VERSION=1.1
|
||||
set -x
|
||||
wget -c https://download.flashrom.org/releases/${SRC}-v${VERSION}.tar.bz2 && \
|
||||
tar xjf ${SRC}-v${VERSION}.tar.bz2 && \
|
||||
mv ${SRC}-v${VERSION} ${SRC}-${VERSION} && \
|
||||
tar cf - ${SRC}-${VERSION} | xz -c9 > ${SRC}-${VERSION}.tar.xz && \
|
||||
rm -rf ${SRC}-v${VERSION}.tar.bz2 ${SRC}-${VERSION}
|
|
@ -0,0 +1,17 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
flashrom: flashrom (a flash chip utility)
|
||||
flashrom:
|
||||
flashrom: flashrom is a utility for identifying, reading, writing, verifying
|
||||
flashrom: and erasing flash chips. It is designed to flash BIOS/EFI/coreboot
|
||||
flashrom: /firmware/optionROM images on mainboards, network/graphics/storage
|
||||
flashrom: controller cards, and various other programmer devices.
|
||||
flashrom:
|
||||
flashrom: URL: https://www.flashrom.org/
|
||||
flashrom:
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
git clone -b master --depth 1 https://gitlab.com/BenjaminDobell/Heimdall.git
|
||||
VERSION=`awk '$1=="const" && $2=="char" && $3=="*version" { print $NF }' Heimdall/heimdall/source/Interface.cpp | sed -e 's/^"v//' -e 's/";$//'`
|
||||
mv Heimdall heimdall-$VERSION
|
||||
tar cf - heimdall-$VERSION | xz -c9 > heimdall-$VERSION.tar.xz
|
||||
[ -s heimdall-$VERSION.tar.xz ] && rm -rf heimdall-$VERSION
|
|
@ -0,0 +1,104 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=heimdall
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
mkdir build && cd build || exit 1
|
||||
|
||||
cmake -DCMAKE_CXX_FLAGS="$SLKCFLAGS" -DCMAKE_BUILD_TYPE=Release -DDISABLE_FRONTEND=ON .. || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
|
||||
# install manually
|
||||
mkdir -p $PKG/usr/bin
|
||||
cp bin/$APP $PKG/usr/bin
|
||||
chmod 755 $PKG/usr/bin/$APP
|
||||
chown root.bin $PKG/usr/bin/$APP
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
( cd .. && cp -a LICENSE Linux/README \
|
||||
$PKG/usr/doc/$APP-$VERSION )
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
heimdall: heimdall (Firmware flash tool for Samsung devices)
|
||||
heimdall:
|
||||
heimdall: Heimdall is a cross-platform open-source tool suite used to
|
||||
heimdall: flash firmware (aka ROMs) onto Samsung mobile devices.
|
||||
heimdall:
|
||||
heimdall: URL: http://glassechidna.com.au/heimdall/
|
||||
heimdall:
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=i2c-tools
|
||||
VERSION=4.1
|
||||
set -x
|
||||
wget -c https://mirrors.edge.kernel.org/pub/software/utils/${SRC}/${SRC}-${VERSION}.tar.xz
|
|
@ -0,0 +1,121 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=i2c-tools
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
sed -i -e 's,\(^mandir[[:blank:]]*=.*\)/share/man,\1/man,' \
|
||||
-e 's,\(^libdir[[:blank:]]*=.*\)/lib,\1/lib'$LIBSUFFIX',' Makefile
|
||||
|
||||
$MAKE PREFIX=/usr CFLAGS="$SLKCFLAGS" EXTRA=eeprog || exit 1
|
||||
make install PREFIX=/usr DESTDIR=$PKG EXTRA=eeprog || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a CHANGES COPYING COPYING.* README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
i2c-tools: i2c-tools (heterogeneous set of I2C tools for Linux)
|
||||
i2c-tools:
|
||||
i2c-tools: This package contains a heterogeneous set of I2C tools for Linux:
|
||||
i2c-tools: a bus probing tool, a chip dumper, register-level access helpers,
|
||||
i2c-tools: EEPROM decoding scripts, and more.
|
||||
i2c-tools:
|
||||
i2c-tools: Git: https://github.com/mozilla-b2g/i2c-tools
|
||||
i2c-tools:
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=linuxconsoletools
|
||||
VERSION=1.7.0
|
||||
set -x
|
||||
wget -c https://downloads.sourceforge.net/project/linuxconsole/${SRC}-${VERSION}.tar.bz2
|
|
@ -0,0 +1,127 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=joystick
|
||||
SRC=linuxconsoletools
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS=""
|
||||
elif [ "$MARCH" = "armv7l" ]; then
|
||||
SLKCFLAGS="-mcpu=cortex-a53"
|
||||
else
|
||||
SLKCFLAGS="-march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xvf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="-O2 -Wall $SLKCFLAGS" PREFIX=/usr $MAKE || exit 1
|
||||
PREFIX=/usr make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
# Don't ship udev rules:
|
||||
( cd $PKG && rm -rf lib )
|
||||
|
||||
# Move man dir to Slackware default location:
|
||||
mv $PKG/usr/share/man $PKG/usr
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYING NEWS README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
joystick: joystick (utilities for testing and configuring joysticks)
|
||||
joystick:
|
||||
joystick: This package includes several utilities for setting up, calibrating,
|
||||
joystick: and testing your joystick. These include jstest and jscal.
|
||||
joystick:
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=lame
|
||||
VERSION=3.100
|
||||
set -x
|
||||
wget -c https://downloads.sourceforge.net/project/${SRC}/${SRC}/${VERSION}/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,133 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=lame
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--disable-static \
|
||||
--enable-nasm \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin $PKG/usr/sbin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a API COPYING DEFINES HACKING INSTALL INSTALL.* LICENSE \
|
||||
README README.* STYLEGUIDE TODO USAGE \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mv $PKG/usr/share/doc/lame/html $PKG/usr/doc/$APP-$VERSION && rm -rf $PKG/usr/share
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
lame: lame (MP3 encoder)
|
||||
lame:
|
||||
lame: LAME is a high quality MPEG Audio Layer III (MP3) encoder
|
||||
lame: licensed under the LGPL.
|
||||
lame:
|
||||
lame: URL: http://lame.sourceforge.net/
|
||||
lame:
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
SRC=$(ls ../../xap/minetest/minetest-[0-9]*.tar.?z* 2>/dev/null | tail -1)
|
||||
[ ! -z "$SRC" ] && [ -s "$SRC" ] && ln -s $SRC .
|
|
@ -0,0 +1,106 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=minetest-server
|
||||
SRC=minetest
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xvf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
cmake . \
|
||||
-DBUILD_SERVER=TRUE \
|
||||
-DBUILD_CLIENT=FALSE \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DRUN_IN_PLACE=FALSE \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCUSTOM_MANDIR=/usr/man || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
# Remove files not used by server:
|
||||
( cd $PKG && \
|
||||
rm -rf usr/share/applications usr/share/icons usr/share/metainfo usr/man/man6/minetest.6
|
||||
)
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mv $PKG/usr/share/doc $PKG/usr && mv $PKG/usr/doc/$SRC $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a CONTRIBUTING.md LICENSE.txt README.md \
|
||||
minetest.conf.example* doc/*.txt \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
minetest-server: minetest-server (multiplayer server for Minetest)
|
||||
minetest-server:
|
||||
minetest-server: Multiplayer server for an open source voxel game engine.
|
||||
minetest-server: Play one of our many games, mod a game to your liking,
|
||||
minetest-server: make your own game, or play on a multiplayer server.
|
||||
minetest-server:
|
||||
minetest-server: URL: https://www.minetest.net/
|
||||
minetest-server:
|
||||
minetest-server:
|
||||
minetest-server:
|
||||
minetest-server:
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=mkvtoolnix
|
||||
VERSION=45.0.0
|
||||
set -x
|
||||
wget -c https://mkvtoolnix.download/sources/${SRC}-${VERSION}.tar.xz
|
|
@ -0,0 +1,135 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=mkvtoolnix
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
if [ ! -x /usr/bin/rake ] ; then
|
||||
echo "Error. Missing /usr/bin/rake. Install ruby package and re-run build script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
RAKE="rake -j 9"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--disable-qt \
|
||||
--with-boost \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$RAKE pkgdatadir=/usr/doc/$APP-$VERSION || exit 1
|
||||
|
||||
rake pkgdatadir=/usr/doc/$APP-$VERSION install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS COPYING INSTALL NEWS.* README.* \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
mkvtoolnix: mkvtoolnix (tools to create, alter and inspect Matroska files)
|
||||
mkvtoolnix:
|
||||
mkvtoolnix: MKVToolnix is a set of tools to create, alter and inspect Matroska
|
||||
mkvtoolnix: files. With these tools one can:
|
||||
mkvtoolnix:
|
||||
mkvtoolnix: * Get information about Matroska files (mkvinfo)
|
||||
mkvtoolnix: * Extract tracks/data from Matroska files (mkvextract)
|
||||
mkvtoolnix: * Create Matroska files from other media files (mkvmerge)
|
||||
mkvtoolnix: * Modify properties of existing Matroska files (mkvpropedit)
|
||||
mkvtoolnix:
|
||||
mkvtoolnix: URL: http://www.bunkus.org/videotools/mkvtoolnix
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=qemu
|
||||
VERSION=4.2.0
|
||||
set -x
|
||||
wget -c https://download.qemu.org/${SRC}-${VERSION}.tar.xz
|
|
@ -0,0 +1,134 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=qemu
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$MARCH" = "armv7l" ]; then
|
||||
SLKCFLAGS="-O2 -mcpu=cortex-a53"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--docdir=/usr/doc/${APP}-${VERSION} \
|
||||
--libdir=/usr/lib${LIBSUFFIX} \
|
||||
--audio-drv-list=alsa,pa || exit 1
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Remove empty var/run dir:
|
||||
rmdir $PKG/var/run $PKG/var
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
# Doc dir is created during installation:
|
||||
cp -a CODING_STYLE COPYING COPYING.* Changelog \
|
||||
HACKING LICENSE MAINTAINERS README VERSION \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
qemu: qemu (generic and open source machine emulator and virtualizer)
|
||||
qemu:
|
||||
qemu: QEMU is a generic and open source machine emulator and virtualizer.
|
||||
qemu: When used as a machine emulator, QEMU can run OSes and programs made
|
||||
qemu: for one machine on a different machine. When used as a virtualizer,
|
||||
qemu: QEMU achieves near native performance by executing the guest code
|
||||
qemu: directly on the host CPU.
|
||||
qemu:
|
||||
qemu: URL: https://www.qemu.org/
|
||||
qemu:
|
|
@ -0,0 +1,9 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
|
||||
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
||||
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=vifm
|
||||
VERSION=0.10.1
|
||||
set -x
|
||||
wget -O ${SRC}-${VERSION}.tar.gz https://github.com/${SRC}/${SRC}/archive/v${VERSION}.tar.gz
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
vifm: vifm (a ncurses-based file manager with vi-like keybindings)
|
||||
vifm:
|
||||
vifm: If you use vi, vifm gives you complete keyboard control over your
|
||||
vifm: files without having to learn a new set of commands.
|
||||
vifm: The configuration for vifm sits in ~/.vifm.
|
||||
vifm:
|
||||
vifm: Vim users: A vifm.vim plugin is included in /usr/share/vifm/vim/.
|
||||
vifm: Read /usr/doc/vifm-$VERSION/README_vim.txt for usage information.
|
||||
vifm:
|
||||
vifm: Homepage: https://vifm.info
|
||||
vifm:
|
|
@ -0,0 +1,135 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=vifm
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--libdir=/usr/lib$LIBSUFFIX \
|
||||
--docdir=/usr/doc/$APP-$VERSION \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin $PKG/usr/sbin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
# Update official colors and add more:
|
||||
rm -rf $TMP/$APP-colors
|
||||
git clone -b master https://github.com/$APP/$APP-colors.git $TMP/$APP-colors
|
||||
cp -av $TMP/$APP-colors/*.vifm $PKG/usr/share/$APP/colors
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS BUGS COPYING COPYING.3party \
|
||||
ChangeLog FAQ INSTALL NEWS README THANKS TODO \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION $TMP/$APP-colors
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
SRC=x264
|
||||
git clone -b master https://code.videolan.org/videolan/${SRC}.git ${SRC}
|
||||
VERSION=$(cd ${SRC} && ./version.sh | sed -e 's/"//g' | awk '$2=="X264_POINTVER" { print $3 }')_$(date '+%Y%m%d')git
|
||||
mv ${SRC} ${SRC}-${VERSION}
|
||||
tar cf - ${SRC}-${VERSION} | xz -c9 > ${SRC}-${VERSION}.tar.xz
|
||||
[ -s ${SRC}-${VERSION}.tar.xz ] && rm -rf ${SRC}-${VERSION}
|
|
@ -0,0 +1,16 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
x264: x264 (free H.264/MPEG-4 AVC compression tool and library)
|
||||
x264:
|
||||
x264: x264 is a free software library and application for encoding video
|
||||
x264: streams into the H.264/MPEG-4 AVC compression format, and is released
|
||||
x264: under the terms of the GNU GPL.
|
||||
x264:
|
||||
x264: URL: https://www.videolan.org/developers/x264.html
|
||||
x264:
|
|
@ -0,0 +1,126 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=x264
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS=""
|
||||
elif [ "$MARCH" = "armv7l" ]; then
|
||||
SLKCFLAGS="-mcpu=cortex-a53"
|
||||
else
|
||||
SLKCFLAGS="-march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib${LIBSUFFIX} \
|
||||
--enable-shared || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a AUTHORS COPYING doc/* \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,161 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=avr-binutils
|
||||
SRC=binutils
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
BUILDABI=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$MARCH" = "armv7l" ]; then
|
||||
BUILDABI="-gnueabi"
|
||||
SLKCFLAGS="-O2 -mcpu=cortex-a53"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xvf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
# Apply patch for AVR specific output of 'size' (avr-size)
|
||||
patch -p1 < $CWD/avr-size.patch || exit 1
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--infodir=/usr/info \
|
||||
--mandir=/usr/man \
|
||||
--disable-nls \
|
||||
--disable-werror \
|
||||
--target=avr \
|
||||
--with-gnu-ld \
|
||||
--with-gnu-as \
|
||||
--with-dwarf2 \
|
||||
--enable-install-libbfd \
|
||||
--enable-ld=default \
|
||||
--enable-gold \
|
||||
--enable-plugins \
|
||||
--enable-threads \
|
||||
--with-pic \
|
||||
--enable-shared \
|
||||
--disable-multilib \
|
||||
--program-prefix="avr-" \
|
||||
--program-suffix="" \
|
||||
--build=$ARCH-slackware-linux${BUILDABI} || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
# Remove useless stuff
|
||||
rm -rfv $PKG/usr/lib${LIBSUFFIX}
|
||||
rm -rfv $PKG/usr/info
|
||||
rm -fv $PKG/usr/man/man1/avr-dlltool.1
|
||||
rm -fv $PKG/usr/man/man1/avr-nlmconv.1
|
||||
rm -fv $PKG/usr/man/man1/avr-windres.1
|
||||
rm -fv $PKG/usr/man/man1/avr-windmc.1
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYING* ChangeLog MAINTAINERS README* \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,430 @@
|
|||
--- ./binutils/size.c 2016-08-03 09:36:51.000000000 +0200
|
||||
+++ ./binutils/size.c 2017-01-18 16:21:29.448739671 +0100
|
||||
@@ -34,10 +34,31 @@
|
||||
#include "getopt.h"
|
||||
#include "bucomm.h"
|
||||
|
||||
-#ifndef BSD_DEFAULT
|
||||
-#define BSD_DEFAULT 1
|
||||
+typedef enum
|
||||
+{
|
||||
+ format_sysv = 0,
|
||||
+ format_bsd = 1,
|
||||
+ format_avr = 2,
|
||||
+} format_type_t;
|
||||
+
|
||||
+
|
||||
+/* Set the default format. */
|
||||
+#define FORMAT_DEFAULT_SYSV 0
|
||||
+#define FORMAT_DEFAULT_BSD 1
|
||||
+#define FORMAT_DEFAULT_AVR 0
|
||||
+
|
||||
+#if FORMAT_DEFAULT_SYSV
|
||||
+ #define FORMAT_DEFAULT format_sysv
|
||||
+ #define FORMAT_NAME "sysv"
|
||||
+#elif FORMAT_DEFAULT_BSD
|
||||
+ #define FORMAT_DEFAULT format_bsd
|
||||
+ #define FORMAT_NAME "berkeley"
|
||||
+#elif FORMAT_DEFAULT_AVR
|
||||
+ #define FORMAT_DEFAULT format_avr
|
||||
+ #define FORMAT_NAME "avr"
|
||||
#endif
|
||||
|
||||
+
|
||||
/* Program options. */
|
||||
|
||||
static enum
|
||||
@@ -46,9 +67,8 @@
|
||||
}
|
||||
radix = decimal;
|
||||
|
||||
-/* 0 means use AT&T-style output. */
|
||||
-static int berkeley_format = BSD_DEFAULT;
|
||||
|
||||
+format_type_t format = FORMAT_DEFAULT;
|
||||
static int show_version = 0;
|
||||
static int show_help = 0;
|
||||
static int show_totals = 0;
|
||||
@@ -62,6 +82,157 @@
|
||||
/* Program exit status. */
|
||||
static int return_code = 0;
|
||||
|
||||
+
|
||||
+/* AVR Size specific stuff */
|
||||
+
|
||||
+#define AVR64 64UL
|
||||
+#define AVR128 128UL
|
||||
+#define AVR256 256UL
|
||||
+#define AVR512 512UL
|
||||
+#define AVR1K 1024UL
|
||||
+#define AVR2K 2048UL
|
||||
+#define AVR4K 4096UL
|
||||
+#define AVR8K 8192UL
|
||||
+#define AVR16K 16384UL
|
||||
+#define AVR24K 24576UL
|
||||
+#define AVR32K 32768UL
|
||||
+#define AVR40K 40960UL
|
||||
+#define AVR64K 65536UL
|
||||
+#define AVR128K 131072UL
|
||||
+#define AVR256K 262144UL
|
||||
+
|
||||
+typedef struct
|
||||
+{
|
||||
+ char *name;
|
||||
+ long flash;
|
||||
+ long ram;
|
||||
+ long eeprom;
|
||||
+} avr_device_t;
|
||||
+
|
||||
+avr_device_t avr[] =
|
||||
+{
|
||||
+ {"atmega2560", AVR256K, AVR8K, AVR4K},
|
||||
+ {"atmega2561", AVR256K, AVR8K, AVR4K},
|
||||
+
|
||||
+ {"at43usb320", AVR128K, 608UL, 0},
|
||||
+ {"at90can128", AVR128K, AVR4K, AVR4K},
|
||||
+ {"at90usb1286", AVR128K, AVR8K, AVR4K},
|
||||
+ {"at90usb1287", AVR128K, AVR8K, AVR4K},
|
||||
+ {"atmega128", AVR128K, AVR4K, AVR4K},
|
||||
+ {"atmega1280", AVR128K, AVR8K, AVR4K},
|
||||
+ {"atmega1281", AVR128K, AVR8K, AVR4K},
|
||||
+ {"atmega1284P", AVR128K, AVR16K, AVR4K},
|
||||
+ {"atmega103", AVR128K, 4000UL, AVR4K},
|
||||
+ {"atxmega128a1",AVR128K, AVR8K, AVR2K},
|
||||
+
|
||||
+ {"at90can64", AVR64K, AVR4K, AVR2K},
|
||||
+ {"at90usb646", AVR64K, AVR4K, AVR2K},
|
||||
+ {"at90usb647", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atmega64", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atmega640", AVR64K, AVR8K, AVR4K},
|
||||
+ {"atmega644", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atmega644p", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atmega645", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atmega6450", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atmega649", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atmega6490", AVR64K, AVR4K, AVR2K},
|
||||
+ {"atxmega64a1", AVR64K, AVR4K, AVR2K},
|
||||
+
|
||||
+ {"atmega406", AVR40K, AVR512, AVR2K},
|
||||
+
|
||||
+ {"at90can32", AVR32K, AVR2K, AVR1K},
|
||||
+ {"at94k", AVR32K, AVR4K, 0},
|
||||
+ {"atmega32", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega323", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega324p", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega325", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega325p", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega3250", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega3250p", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega328p", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega329", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega329p", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega3290", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega3290p", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega32hvb", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega32c1", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega32m1", AVR32K, AVR2K, AVR1K},
|
||||
+ {"atmega32u4", AVR32K, 2560UL, AVR1K},
|
||||
+
|
||||
+ {"at43usb355", AVR24K, 1120, 0},
|
||||
+
|
||||
+ {"at76c711", AVR16K, AVR2K, 0},
|
||||
+ {"at90pwm216", AVR16K, AVR1K, AVR512},
|
||||
+ {"at90pwm316", AVR16K, AVR1K, AVR512},
|
||||
+ {"at90usb162", AVR16K, AVR512, AVR512},
|
||||
+ {"atmega16", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega161", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega162", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega163", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega164", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega164p", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega165", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega165p", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega168", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega168p", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega169", AVR16K, AVR1K, AVR512},
|
||||
+ {"atmega169p", AVR16K, AVR1K, AVR512},
|
||||
+ {"attiny167", AVR16K, AVR512, AVR512},
|
||||
+ {"atxmega16d4", AVR16K, AVR2K, AVR1K},
|
||||
+
|
||||
+ {"at90c8534", AVR8K, 352, AVR512},
|
||||
+ {"at90pwm1", AVR8K, AVR512, AVR512},
|
||||
+ {"at90pwm2", AVR8K, AVR512, AVR512},
|
||||
+ {"at90pwm2b", AVR8K, AVR512, AVR512},
|
||||
+ {"at90pwm3", AVR8K, AVR512, AVR512},
|
||||
+ {"at90pwm3b", AVR8K, AVR512, AVR512},
|
||||
+ {"at90s8515", AVR8K, AVR512, AVR512},
|
||||
+ {"at90s8535", AVR8K, AVR512, AVR512},
|
||||
+ {"at90usb82", AVR8K, AVR512, AVR512},
|
||||
+ {"atmega8", AVR8K, AVR1K, AVR512},
|
||||
+ {"atmega8515", AVR8K, AVR512, AVR512},
|
||||
+ {"atmega8535", AVR8K, AVR512, AVR512},
|
||||
+ {"atmega88", AVR8K, AVR1K, AVR512},
|
||||
+ {"atmega88p", AVR8K, AVR1K, AVR512},
|
||||
+ {"attiny84", AVR8K, AVR512, AVR512},
|
||||
+ {"attiny85", AVR8K, AVR512, AVR512},
|
||||
+ {"attiny861", AVR8K, AVR512, AVR512},
|
||||
+ {"attiny88", AVR8K, AVR256, AVR64},
|
||||
+
|
||||
+ {"at90s4414", AVR4K, 352, AVR256},
|
||||
+ {"at90s4433", AVR4K, AVR128, AVR256},
|
||||
+ {"at90s4434", AVR4K, 352, AVR256},
|
||||
+ {"atmega48", AVR4K, AVR512, AVR256},
|
||||
+ {"atmega48p", AVR4K, AVR512, AVR256},
|
||||
+ {"attiny43u", AVR4K, AVR256, AVR64},
|
||||
+ {"attiny44", AVR4K, AVR256, AVR256},
|
||||
+ {"attiny45", AVR4K, AVR256, AVR256},
|
||||
+ {"attiny461", AVR4K, AVR256, AVR256},
|
||||
+ {"attiny48", AVR4K, AVR256, AVR64},
|
||||
+
|
||||
+ {"at86rf401", AVR2K, 224, AVR128},
|
||||
+ {"at90s2313", AVR2K, AVR128, AVR128},
|
||||
+ {"at90s2323", AVR2K, AVR128, AVR128},
|
||||
+ {"at90s2333", AVR2K, 224, AVR128},
|
||||
+ {"at90s2343", AVR2K, AVR128, AVR128},
|
||||
+ {"attiny22", AVR2K, 224, AVR128},
|
||||
+ {"attiny2313", AVR2K, AVR128, AVR128},
|
||||
+ {"attiny24", AVR2K, AVR128, AVR128},
|
||||
+ {"attiny25", AVR2K, AVR128, AVR128},
|
||||
+ {"attiny26", AVR2K, AVR128, AVR128},
|
||||
+ {"attiny261", AVR2K, AVR128, AVR128},
|
||||
+ {"attiny28", AVR2K, 0, 0},
|
||||
+
|
||||
+ {"at90s1200", AVR1K, 0, AVR64},
|
||||
+ {"attiny11", AVR1K, 0, AVR64},
|
||||
+ {"attiny12", AVR1K, 0, AVR64},
|
||||
+ {"attiny13", AVR1K, AVR64, AVR64},
|
||||
+ {"attiny15", AVR1K, 0, AVR64},
|
||||
+};
|
||||
+
|
||||
+static char *avrmcu = NULL;
|
||||
+
|
||||
+
|
||||
static char *target = NULL;
|
||||
|
||||
/* Forward declarations. */
|
||||
@@ -77,7 +248,8 @@
|
||||
fprintf (stream, _(" Displays the sizes of sections inside binary files\n"));
|
||||
fprintf (stream, _(" If no input file(s) are specified, a.out is assumed\n"));
|
||||
fprintf (stream, _(" The options are:\n\
|
||||
- -A|-B --format={sysv|berkeley} Select output style (default is %s)\n\
|
||||
+ -A|-B|-C --format={sysv|berkeley|avr} Select output style (default is %s)\n\
|
||||
+ --mcu=<avrmcu> MCU name for AVR format only\n\
|
||||
-o|-d|-x --radix={8|10|16} Display numbers in octal, decimal or hex\n\
|
||||
-t --totals Display the total sizes (Berkeley only)\n\
|
||||
--common Display total size for *COM* syms\n\
|
||||
@@ -86,11 +258,7 @@
|
||||
-h --help Display this information\n\
|
||||
-v --version Display the program's version\n\
|
||||
\n"),
|
||||
-#if BSD_DEFAULT
|
||||
- "berkeley"
|
||||
-#else
|
||||
- "sysv"
|
||||
-#endif
|
||||
+FORMAT_NAME
|
||||
);
|
||||
list_supported_targets (program_name, stream);
|
||||
if (REPORT_BUGS_TO[0] && status == 0)
|
||||
@@ -101,6 +269,7 @@
|
||||
#define OPTION_FORMAT (200)
|
||||
#define OPTION_RADIX (OPTION_FORMAT + 1)
|
||||
#define OPTION_TARGET (OPTION_RADIX + 1)
|
||||
+#define OPTION_MCU (OPTION_TARGET + 1)
|
||||
|
||||
static struct option long_options[] =
|
||||
{
|
||||
@@ -108,6 +277,7 @@
|
||||
{"format", required_argument, 0, OPTION_FORMAT},
|
||||
{"radix", required_argument, 0, OPTION_RADIX},
|
||||
{"target", required_argument, 0, OPTION_TARGET},
|
||||
+ {"mcu", required_argument, 0, 203},
|
||||
{"totals", no_argument, &show_totals, 1},
|
||||
{"version", no_argument, &show_version, 1},
|
||||
{"help", no_argument, &show_help, 1},
|
||||
@@ -140,7 +310,7 @@
|
||||
bfd_init ();
|
||||
set_default_bfd_target ();
|
||||
|
||||
- while ((c = getopt_long (argc, argv, "ABHhVvdfotx", long_options,
|
||||
+ while ((c = getopt_long (argc, argv, "ABCHhVvdfotx", long_options,
|
||||
(int *) 0)) != EOF)
|
||||
switch (c)
|
||||
{
|
||||
@@ -149,11 +319,15 @@
|
||||
{
|
||||
case 'B':
|
||||
case 'b':
|
||||
- berkeley_format = 1;
|
||||
+ format = format_bsd;
|
||||
break;
|
||||
case 'S':
|
||||
case 's':
|
||||
- berkeley_format = 0;
|
||||
+ format = format_sysv;
|
||||
+ break;
|
||||
+ case 'A':
|
||||
+ case 'a':
|
||||
+ format = format_avr;
|
||||
break;
|
||||
default:
|
||||
non_fatal (_("invalid argument to --format: %s"), optarg);
|
||||
@@ -161,6 +335,10 @@
|
||||
}
|
||||
break;
|
||||
|
||||
+ case OPTION_MCU:
|
||||
+ avrmcu = optarg;
|
||||
+ break;
|
||||
+
|
||||
case OPTION_TARGET:
|
||||
target = optarg;
|
||||
break;
|
||||
@@ -189,11 +367,14 @@
|
||||
break;
|
||||
|
||||
case 'A':
|
||||
- berkeley_format = 0;
|
||||
+ format = format_sysv;
|
||||
break;
|
||||
case 'B':
|
||||
- berkeley_format = 1;
|
||||
+ format = format_bsd;
|
||||
break;
|
||||
+ case 'C':
|
||||
+ format = format_avr;
|
||||
+ break;
|
||||
case 'v':
|
||||
case 'V':
|
||||
show_version = 1;
|
||||
@@ -239,7 +420,7 @@
|
||||
for (; optind < argc;)
|
||||
display_file (argv[optind++]);
|
||||
|
||||
- if (show_totals && berkeley_format)
|
||||
+ if (show_totals && format == format_bsd)
|
||||
{
|
||||
bfd_size_type total = total_textsize + total_datasize + total_bsssize;
|
||||
|
||||
@@ -605,13 +786,117 @@
|
||||
printf ("\n\n");
|
||||
}
|
||||
|
||||
+
|
||||
+static avr_device_t *
|
||||
+avr_find_device (void)
|
||||
+{
|
||||
+ unsigned int i;
|
||||
+ if (avrmcu != NULL)
|
||||
+ {
|
||||
+ for (i = 0; i < sizeof(avr) / sizeof(avr[0]); i++)
|
||||
+ {
|
||||
+ if (strcmp(avr[i].name, avrmcu) == 0)
|
||||
+ {
|
||||
+ /* Match found */
|
||||
+ return (&avr[i]);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+ return (NULL);
|
||||
+}
|
||||
+
|
||||
+
|
||||
+
|
||||
+static void
|
||||
+print_avr_format (bfd *file)
|
||||
+{
|
||||
+ char *avr_name = "Unknown";
|
||||
+ int flashmax = 0;
|
||||
+ int rammax = 0;
|
||||
+ int eeprommax = 0;
|
||||
+ asection *section;
|
||||
+ bfd_size_type data_size = 0;
|
||||
+ bfd_size_type text_size = 0;
|
||||
+ bfd_size_type bss_size = 0;
|
||||
+ bfd_size_type bootloader_size = 0;
|
||||
+ bfd_size_type noinit_size = 0;
|
||||
+ bfd_size_type eeprom_size = 0;
|
||||
+
|
||||
+ avr_device_t *avrdevice = avr_find_device();
|
||||
+ if (avrdevice != NULL)
|
||||
+ {
|
||||
+ avr_name = avrdevice->name;
|
||||
+ flashmax = avrdevice->flash;
|
||||
+ rammax = avrdevice->ram;
|
||||
+ eeprommax = avrdevice->eeprom;
|
||||
+ }
|
||||
+
|
||||
+ if ((section = bfd_get_section_by_name (file, ".data")) != NULL)
|
||||
+ data_size = bfd_section_size (file, section);
|
||||
+ if ((section = bfd_get_section_by_name (file, ".text")) != NULL)
|
||||
+ text_size = bfd_section_size (file, section);
|
||||
+ if ((section = bfd_get_section_by_name (file, ".bss")) != NULL)
|
||||
+ bss_size = bfd_section_size (file, section);
|
||||
+ if ((section = bfd_get_section_by_name (file, ".bootloader")) != NULL)
|
||||
+ bootloader_size = bfd_section_size (file, section);
|
||||
+ if ((section = bfd_get_section_by_name (file, ".noinit")) != NULL)
|
||||
+ noinit_size = bfd_section_size (file, section);
|
||||
+ if ((section = bfd_get_section_by_name (file, ".eeprom")) != NULL)
|
||||
+ eeprom_size = bfd_section_size (file, section);
|
||||
+
|
||||
+ bfd_size_type text = text_size + data_size + bootloader_size;
|
||||
+ bfd_size_type data = data_size + bss_size + noinit_size;
|
||||
+ bfd_size_type eeprom = eeprom_size;
|
||||
+
|
||||
+ printf ("AVR Memory Usage\n"
|
||||
+ "----------------\n"
|
||||
+ "Device: %s\n\n", avr_name);
|
||||
+
|
||||
+ /* Text size */
|
||||
+ printf ("Program:%8ld bytes", text);
|
||||
+ if (flashmax > 0)
|
||||
+ {
|
||||
+ printf (" (%2.1f%% Full)", ((float)text / flashmax) * 100);
|
||||
+ }
|
||||
+ printf ("\n(.text + .data + .bootloader)\n\n");
|
||||
+
|
||||
+ /* Data size */
|
||||
+ printf ("Data: %8ld bytes", data);
|
||||
+ if (rammax > 0)
|
||||
+ {
|
||||
+ printf (" (%2.1f%% Full)", ((float)data / rammax) * 100);
|
||||
+ }
|
||||
+ printf ("\n(.data + .bss + .noinit)\n\n");
|
||||
+
|
||||
+ /* EEPROM size */
|
||||
+ if (eeprom > 0)
|
||||
+ {
|
||||
+ printf ("EEPROM: %8ld bytes", eeprom);
|
||||
+ if (eeprommax > 0)
|
||||
+ {
|
||||
+ printf (" (%2.1f%% Full)", ((float)eeprom / eeprommax) * 100);
|
||||
+ }
|
||||
+ printf ("\n(.eeprom)\n\n");
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+
|
||||
static void
|
||||
print_sizes (bfd *file)
|
||||
{
|
||||
if (show_common)
|
||||
calculate_common_size (file);
|
||||
- if (berkeley_format)
|
||||
- print_berkeley_format (file);
|
||||
- else
|
||||
- print_sysv_format (file);
|
||||
+ switch (format)
|
||||
+ {
|
||||
+ case format_sysv:
|
||||
+ print_sysv_format (file);
|
||||
+ break;
|
||||
+ case format_bsd:
|
||||
+ print_berkeley_format (file);
|
||||
+ break;
|
||||
+ case format_avr:
|
||||
+ default:
|
||||
+ print_avr_format (file);
|
||||
+ break;
|
||||
+ }
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
VERSION=2.27
|
||||
set -x
|
||||
wget -c https://ftp.gnu.org/gnu/binutils/binutils-${VERSION}.tar.gz
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
avr-binutils: avr-binutils (Cross compiling binutils for the AVR platform)
|
||||
avr-binutils:
|
||||
avr-binutils: This package contains cross compiling version of GNU binutils,
|
||||
avr-binutils: which can be used to assemble and link binaries for the AVR
|
||||
avr-binutils: platform.
|
||||
avr-binutils:
|
||||
avr-binutils: It includes a patch to make 'avr-size' report how much memory (RAM
|
||||
avr-binutils: and flash) is taken up by the binary image on the target processor.
|
||||
avr-binutils: (obtained from https://bugs.archlinux.org/task/32504)
|
||||
avr-binutils:
|
||||
avr-binutils:
|
|
@ -0,0 +1,173 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=avr-gcc
|
||||
SRC=gcc
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
BUILDABI=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$MARCH" = "armv7l" ]; then
|
||||
BUILDABI="-gnueabi"
|
||||
SLKCFLAGS="-O2 -mcpu=cortex-a53"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION ${APP}-build
|
||||
tar xvf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
( cd $SRC-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \; )
|
||||
mkdir ${APP}-build
|
||||
cd ${APP}-build || exit 1
|
||||
|
||||
CFLAGS_FOR_BUILD="$SLKCFLAGS" \
|
||||
CXXFLAGS_FOR_BUILD="$SLKCFLAGS" \
|
||||
../$SRC-$VERSION/configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--infodir=/usr/info \
|
||||
--mandir=/usr/man \
|
||||
--disable-install-libiberty \
|
||||
--disable-libssp \
|
||||
--disable-libstdcxx-pch \
|
||||
--disable-libunwind-exceptions \
|
||||
--disable-linker-build-id \
|
||||
--disable-nls \
|
||||
--disable-werror \
|
||||
--enable-__cxa_atexit \
|
||||
--enable-checking=release \
|
||||
--enable-clocale=gnu \
|
||||
--enable-cloog-backend=isl \
|
||||
--enable-gnu-unique-object \
|
||||
--enable-gold \
|
||||
--enable-languages=c,c++ \
|
||||
--enable-ld=default \
|
||||
--enable-lto \
|
||||
--enable-plugin \
|
||||
--enable-shared \
|
||||
--target=avr \
|
||||
--with-as=/usr/bin/avr-as \
|
||||
--with-gnu-as \
|
||||
--with-gnu-ld \
|
||||
--with-ld=/usr/bin/avr-ld \
|
||||
--with-plugin-ld=ld.gold \
|
||||
--with-system-zlib \
|
||||
--with-dwarf2 \
|
||||
--program-prefix="avr-" \
|
||||
--program-suffix="" \
|
||||
--build=$ARCH-slackware-linux${BUILDABI} || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
# Remove useless stuff
|
||||
rm -rf $PKG/usr/lib${LIBSUFFIX}/libiberty.a
|
||||
rm -rf $PKG/usr/info
|
||||
rm -rf $PKG/usr/include
|
||||
rm -rf $PKG/usr/share
|
||||
rm -rf $PKG/usr/man/man7
|
||||
rm -rf $PKG/usr/libexec/gcc/avr/$VERSION/install-tools
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
( cd ../$SRC-$VERSION && \
|
||||
cp -a COPYING* ChangeLog MAINTAINERS NEWS README* \
|
||||
$PKG/usr/doc/$APP-$VERSION )
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION $TMP/$APP-build
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
VERSION=4.9.4
|
||||
set -x
|
||||
wget -c https://ftp.gnu.org/gnu/gcc/gcc-${VERSION}/gcc-${VERSION}.tar.bz2
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
avr-gcc: avr-gcc (Cross compiling gcc for the AVR platform)
|
||||
avr-gcc:
|
||||
avr-gcc: This package contains cross compiling version of GNU gcc, which can
|
||||
avr-gcc: be used to compile C and C++ programs for the AVR platform.
|
||||
avr-gcc:
|
||||
avr-gcc:
|
||||
avr-gcc:
|
||||
avr-gcc:
|
||||
avr-gcc:
|
||||
avr-gcc:
|
||||
avr-gcc:
|
|
@ -0,0 +1,142 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=avr-libc
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev | head -1)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
BUILDABI=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
elif [ "$MARCH" = "armv7l" ]; then
|
||||
BUILDABI="-gnueabi"
|
||||
SLKCFLAGS="-O2 -mcpu=cortex-a53"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG $APP-$VERSION
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--host=avr \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--infodir=/usr/doc/$APP-$VERSION/info \
|
||||
--mandir=/usr/doc/$APP-$VERSION/man \
|
||||
--docdir=/usr/doc/$APP-$VERSION \
|
||||
--enable-html-doc \
|
||||
--enable-man-doc \
|
||||
--build=$ARCH-slackware-linux${BUILDABI} || exit 1
|
||||
|
||||
$MAKE all || exit 1
|
||||
make install DOC_INST_DIR=$PKG/usr/doc/$APP-$VERSION DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
# Add extra man pages when available:
|
||||
if [ -f $CWD/$APP-manpages-$VERSION.tar.?z* ]; then
|
||||
( cd $PKG/usr/doc/$APP-$VERSION && \
|
||||
tar xvf $CWD/$APP-manpages-$VERSION.tar.?z* )
|
||||
fi
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/doc/$APP-$VERSION/info ]; then
|
||||
rm -f $PKG/usr/doc/$APP-$VERSION/info/dir
|
||||
gzip -9 $PKG/usr/doc/$APP-$VERSION/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/doc/$APP-$VERSION/man ]; then
|
||||
( cd $PKG/usr/doc/$APP-$VERSION/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
# Docdir should have been created by now:
|
||||
cp -a AUTHORS ChangeLog ChangeLog-* INSTALL LICENSE NEWS README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
VERSION=2.0.0
|
||||
set -x
|
||||
wget -c http://download.savannah.gnu.org/releases/avr-libc/avr-libc-${VERSION}.tar.bz2 \
|
||||
http://download.savannah.gnu.org/releases/avr-libc/avr-libc-manpages-${VERSION}.tar.bz2
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
avr-libc: avr-libc (C library for programming on the AVR platform)
|
||||
avr-libc:
|
||||
avr-libc: This package contains a high quality C library
|
||||
avr-libc: for use with GCC on Atmel AVR microcontrollers.
|
||||
avr-libc:
|
||||
avr-libc: URL: http://avr-libc.nongnu.org/
|
||||
avr-libc:
|
||||
avr-libc:
|
||||
avr-libc:
|
||||
avr-libc:
|
||||
avr-libc:
|
|
@ -0,0 +1,123 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=coccinelle
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
# do not build in parallel:
|
||||
MAKE="make"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
./autogen || exit 1
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$APP-$VERSION \
|
||||
--enable-ocaml=yes \
|
||||
--enable-python=yes \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.? *.?cocci
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=coccinelle
|
||||
VERSION=1.0.8
|
||||
set -x
|
||||
wget -O ${SRC}-${VERSION}.tar.gz https://github.com/${SRC}/${SRC}/archive/${VERSION}.tar.gz
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
coccinelle: coccinelle (program matching and transformation engine)
|
||||
coccinelle:
|
||||
coccinelle: Coccinelle allows programmers to easily write some complex
|
||||
coccinelle: style-preserving source-to-source transformations on C source code,
|
||||
coccinelle: like for instance to perform some refactorings.
|
||||
coccinelle:
|
||||
coccinelle: Homepage: http://coccinelle.lip6.fr/
|
||||
coccinelle:
|
||||
coccinelle:
|
||||
coccinelle:
|
||||
coccinelle:
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=LuaJIT
|
||||
VERSION=2.0.5
|
||||
set -x
|
||||
wget -c https://luajit.org/download/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,97 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=luajit
|
||||
SRC=LuaJIT
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xvf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
$MAKE amalg PREFIX=/usr MULTILIB=lib${LIBSUFFIX} || exit 1
|
||||
make install PREFIX=/usr MULTILIB=lib${LIBSUFFIX} DESTDIR=$PKG || exit 1
|
||||
|
||||
# Move man pages:
|
||||
mv -v $PKG/usr/share/man $PKG/usr
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -fv $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
# Remove empty dirs:
|
||||
rmdir -v ${PKG}/usr/share/lua/* ${PKG}/usr/share/lua \
|
||||
${PKG}/usr/lib${LIBSUFFIX}/lua/* ${PKG}/usr/lib${LIBSUFFIX}/lua
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYRIGHT README doc $PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
luajit: luajit (Just-In-Time Compiler for the Lua programming language)
|
||||
luajit:
|
||||
luajit: LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming
|
||||
luajit: language. Lua is a powerful, dynamic and light-weight programming
|
||||
luajit: language. It may be embedded or used as a general-purpose,
|
||||
luajit: stand-alone language.
|
||||
luajit: LuaJIT is used to build Minetest.
|
||||
luajit:
|
||||
luajit: http://luajit.org/luajit.html
|
||||
luajit:
|
||||
luajit:
|
|
@ -0,0 +1,15 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/ocaml/findlib.conf.new
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=findlib
|
||||
VERSION=1.8.1
|
||||
set -x
|
||||
wget -c http://download.camlcity.org/download/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,133 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=ocaml-findlib
|
||||
SRC=findlib
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xvf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure -bindir /usr/bin \
|
||||
-mandir /usr/man \
|
||||
-config /etc/ocaml/findlib.conf || exit 1
|
||||
|
||||
$MAKE all || exit 1
|
||||
$MAKE opt || exit 1
|
||||
make prefix=/tmp/package-ocaml-findlib install || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin $PKG/usr/sbin
|
||||
|
||||
# Preserve original config file:
|
||||
mv $PKG/etc/ocaml/findlib.conf $PKG/etc/ocaml/findlib.conf.new
|
||||
|
||||
# Remove some manpages:
|
||||
rm -f $PKG/usr/man/man5/META.5 $PKG/usr/man/man5/site-lib.5
|
||||
rmdir $PKG/usr/man/man3
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a INSTALL LICENSE $PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|' on
|
||||
# the right side marks the last column you can put a character in. You must make
|
||||
# exactly 11 lines for the formatting to be correct. It's also customary to
|
||||
# leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
ocaml-findlib: ocaml-findlib (a library manager for OCaml)
|
||||
ocaml-findlib:
|
||||
ocaml-findlib: Findlib is a library manager for OCaml. It provides a convention how
|
||||
ocaml-findlib: to store libraries, and a file format ("META") to describe the
|
||||
ocaml-findlib: properties of libraries. There is also a tool (ocamlfind) for
|
||||
ocaml-findlib: interpreting the META files, so that it is very easy to use libraries
|
||||
ocaml-findlib: in programs and scripts.
|
||||
ocaml-findlib:
|
||||
ocaml-findlib: URL: https://opam.ocaml.org/packages/ocamlfind/
|
||||
ocaml-findlib:
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=ocaml
|
||||
VERSION=4.10.0
|
||||
set -x
|
||||
wget -O ${SRC}-${VERSION}.tar.gz -c https://github.com/${SRC}/${SRC}/archive/${VERSION}.tar.gz
|
|
@ -0,0 +1,127 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
APP=ocaml
|
||||
VERSION=$(ls $APP-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
MAKE="make -j 5"
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $APP-$VERSION
|
||||
tar xvf $CWD/$APP-$VERSION.tar.?z* || exit 1
|
||||
cd $APP-$VERSION || exit 1
|
||||
chown -R root:root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc/$APP \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$APP-$VERSION \
|
||||
--build=$ARCH-slackware-linux || exit 1
|
||||
|
||||
$MAKE world.opt || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -fv $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
chown -R root.bin $PKG/usr/bin
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.? *.?o
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a CONTRIBUTING.md Changes HACKING.adoc INSTALL.adoc \
|
||||
LICENSE README.adoc VERSION $PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$APP-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
ocaml: ocaml (A functional programming language)
|
||||
ocaml:
|
||||
ocaml: Caml is a general-purpose programming language, designed with program
|
||||
ocaml: safety and reliability in mind. It is very expressive, yet easy to
|
||||
ocaml: learn and use. Caml supports functional, imperative, and
|
||||
ocaml: object-oriented programming styles. The Objective Caml system is the
|
||||
ocaml: main implementation of the Caml language. It features a powerful
|
||||
ocaml: module system and a full-fledged object-oriented layer. It comes with
|
||||
ocaml: a native-code compiler that supports numerous architectures, for high
|
||||
ocaml: performance; a bytecode compiler, for increased portability; and an
|
||||
ocaml: interactive loop, for experimentation and rapid development.
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=AnyEvent
|
||||
VERSION=7.17
|
||||
set -x
|
||||
wget -c https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,99 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
SRC=AnyEvent
|
||||
APP=perl-$SRC
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
fi
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
export PERL_CANARY_STABILITY_NOPROMPT=1
|
||||
export PERL_ANYEVENT_LOOP_TESTS=1
|
||||
export PERL_ANYEVENT_NET_TESTS=1
|
||||
perl Makefile.PL \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3 || exit 1
|
||||
make || exit 1
|
||||
make test || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
find . -type f \( -name perllocal.pod -o -name '.packlist' -o -name '*.bs' \) -exec rm -fv {} \; 2>/dev/null
|
||||
find . -depth -type d -empty -delete 2>/dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a Changes README MANIFEST COPYING \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
perl-AnyEvent: perl-AnyEvent (the DBI of event loop programming)
|
||||
perl-AnyEvent:
|
||||
perl-AnyEvent: AnyEvent provides a uniform interface to various event loops. This
|
||||
perl-AnyEvent: allows module authors to use event loop functionality without
|
||||
perl-AnyEvent: forcing module users to use a specific event loop implementation
|
||||
perl-AnyEvent: (since more than one event loop cannot coexist peacefully).
|
||||
perl-AnyEvent:
|
||||
perl-AnyEvent:
|
||||
perl-AnyEvent:
|
||||
perl-AnyEvent:
|
||||
perl-AnyEvent: https://metacpan.org/release/AnyEvent
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=Canary-Stability
|
||||
VERSION=2006
|
||||
set -x
|
||||
wget -c https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,97 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
SRC=Canary-Stability
|
||||
APP=perl-$SRC
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
fi
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
perl Makefile.PL \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3 || exit 1
|
||||
|
||||
make || exit 1
|
||||
make test || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
find . -type f \( -name perllocal.pod -o -name '.packlist' -o -name '*.bs' \) -exec rm -fv {} \; 2>/dev/null
|
||||
find . -depth -type d -empty -delete 2>/dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYING Changes README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
perl-Canary-Stability: perl-Canary-Stability (Canary::Stability)
|
||||
perl-Canary-Stability:
|
||||
perl-Canary-Stability: canary to check perl compatibility for schmorp's modules
|
||||
perl-Canary-Stability:
|
||||
perl-Canary-Stability:
|
||||
perl-Canary-Stability: Homepage: https://metacpan.org/release/MLEHMANN/Canary-Stability-2006
|
||||
perl-Canary-Stability:
|
||||
perl-Canary-Stability:
|
||||
perl-Canary-Stability:
|
||||
perl-Canary-Stability:
|
||||
perl-Canary-Stability:
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=JSON-XS
|
||||
VERSION=4.02
|
||||
set -x
|
||||
wget -c https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,131 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
SRC=JSON-XS
|
||||
APP=perl-$SRC
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
MARCH=${MARCH:-sandybridge}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$MARCH" = "i386" ]; then
|
||||
SLKCFLAGS="-O2 -march=i386 -mtune=i686"
|
||||
elif [ "$MARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$MARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
elif [ "$MARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686"
|
||||
elif [ "$MARCH" = "nocona" ]; then
|
||||
SLKCFLAGS="-O2 -march=nocona -mtune=generic -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "core2" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "atom" ]; then
|
||||
SLKCFLAGS="-O2 -march=core2 -mcx16 -msahf --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=core2 -mfpmath=sse -mmmx -msse -msse2 -msse3"
|
||||
elif [ "$MARCH" = "sandybridge" ]; then
|
||||
SLKCFLAGS="-O2 -march=sandybridge"
|
||||
elif [ "$MARCH" = "pentium3" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium3 -mmmx -msse"
|
||||
elif [ "$MARCH" = "pentium2" ]; then
|
||||
SLKCFLAGS="-O2 -march=pentium2 -mmmx"
|
||||
elif [ "$MARCH" = "s390" ]; then
|
||||
SLKCFLAGS="-O2"
|
||||
else
|
||||
SLKCFLAGS="-O2 -march=$ARCH"
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
SLKCFLAGS="$SLKCFLAGS -fPIC -m64"
|
||||
fi
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
export PERL_MM_USE_DEFAULT=1
|
||||
perl Makefile.PL \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN1DIR=/usr/man/man1 \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3 \
|
||||
CCFLAGS="-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2" \
|
||||
OPTIMIZE="$SLKCFLAGS" \
|
||||
LDDLFLAGS="-fstack-protector-strong -shared -O2 -fPIC -L/usr/lib$LIBSUFFIX" \
|
||||
LDFLAGS="-fstack-protector-strong -L/usr/lib$LIBSUFFIX" \
|
||||
SITELIBEXP=/usr/share/perl5 \
|
||||
SITEARCHEXP=/usr/lib$LIBSUFFIX/perl5 || exit 1
|
||||
make || exit 1
|
||||
make test || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
find . -type f \( -name perllocal.pod -o -name '.packlist' -o -name '*.bs' \) -exec rm -fv {} \; 2>/dev/null
|
||||
find . -depth -type d -empty -delete 2>/dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYING Changes README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
perl-JSON-XS: perl-JSON-XS (JSON serialising/deserialising)
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS: This module converts Perl data structures to JSON and vice
|
||||
perl-JSON-XS: versa. Its primary goal is to be correct and its secondary goal
|
||||
perl-JSON-XS: is to be fast. To reach the latter goal it was written in C.
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS:
|
||||
perl-JSON-XS: https://metacpan.org/release/JSON-XS
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=Types-Serialiser
|
||||
VERSION=1.0
|
||||
set -x
|
||||
wget -c https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,95 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
SRC=Types-Serialiser
|
||||
APP=perl-$SRC
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
fi
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
perl Makefile.PL \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3 || exit 1
|
||||
make || exit 1
|
||||
make test || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
find . -type f \( -name perllocal.pod -o -name '.packlist' -o -name '*.bs' \) -exec rm -fv {} \; 2>/dev/null
|
||||
find . -depth -type d -empty -delete 2>/dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a COPYING README Changes \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
perl-Types-Serialiser: perl-Types-Serialiser (simple data types for serialisation formats)
|
||||
perl-Types-Serialiser:
|
||||
perl-Types-Serialiser: This module provides some extra datatypes that are used by common
|
||||
perl-Types-Serialiser: serialisation formats such as JSON or CBOR. The idea is to have a
|
||||
perl-Types-Serialiser: shared repository of simple/small constants and containers that can
|
||||
perl-Types-Serialiser: be shared by different implementations so they become interoperable
|
||||
perl-Types-Serialiser: between each other.
|
||||
perl-Types-Serialiser:
|
||||
perl-Types-Serialiser:
|
||||
perl-Types-Serialiser:
|
||||
perl-Types-Serialiser: https://metacpan.org/release/Types-Serialiser
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SRC=common-sense
|
||||
VERSION=3.75
|
||||
set -x
|
||||
wget -c https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/${SRC}-${VERSION}.tar.gz
|
|
@ -0,0 +1,95 @@
|
|||
#!/bin/sh
|
||||
# Set initial variables:
|
||||
CWD=$(pwd)
|
||||
|
||||
SRC=common-sense
|
||||
APP=perl-$SRC
|
||||
VERSION=$(ls $SRC-*.tar.?z* | sed -e 's/\.tar\..z.*//' | rev | cut -d- -f1 | rev)
|
||||
ARCH=${ARCH:-x86_64}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-micu}
|
||||
|
||||
LIBSUFFIX=""
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
LIBSUFFIX=${LIBSUFFIX:-64}
|
||||
fi
|
||||
|
||||
if [ "$TMP" = "" ]; then
|
||||
TMP=/tmp
|
||||
fi
|
||||
PKG=$TMP/package-$APP
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG
|
||||
cd $TMP
|
||||
rm -rf $SRC-$VERSION
|
||||
tar xf $CWD/$SRC-$VERSION.tar.?z* || exit 1
|
||||
cd $SRC-$VERSION || exit 1
|
||||
chown -R root.root .
|
||||
find . -perm 444 -exec chmod 644 {} \;
|
||||
find . -perm 777 -exec chmod 755 {} \;
|
||||
find . -perm 666 -exec chmod 644 {} \;
|
||||
|
||||
perl Makefile.PL \
|
||||
PREFIX=/usr \
|
||||
INSTALLDIRS=vendor \
|
||||
INSTALLVENDORMAN3DIR=/usr/man/man3 || exit 1
|
||||
make || exit 1
|
||||
make test || exit 1
|
||||
make install DESTDIR=$PKG || exit 1
|
||||
|
||||
# Don't ship .la files:
|
||||
rm -f $PKG/{,usr/}lib${LIBSUFFIX}/*.la
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "current ar archive" | grep ELF | cut -f 1 -d : | xargs strip -g 2> /dev/null
|
||||
find . -type f \( -name perllocal.pod -o -name '.packlist' -o -name '*.bs' \) -exec rm -fv {} \; 2>/dev/null
|
||||
find . -depth -type d -empty -delete 2>/dev/null
|
||||
)
|
||||
|
||||
# Compress and if needed symlink the man pages:
|
||||
if [ -d $PKG/usr/info ]; then
|
||||
rm -f $PKG/usr/info/dir
|
||||
gzip -9 $PKG/usr/info/*
|
||||
fi
|
||||
if [ -d $PKG/usr/man ]; then
|
||||
( cd $PKG/usr/man
|
||||
for manpagedir in $(find . -type d -name "man*") ; do
|
||||
( cd $manpagedir
|
||||
for eachpage in $( find . -type l -maxdepth 1) ; do
|
||||
ln -s $( readlink $eachpage ).gz $eachpage.gz
|
||||
rm $eachpage
|
||||
done
|
||||
gzip -9 *.?
|
||||
)
|
||||
done
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p $PKG/usr/doc/$APP-$VERSION
|
||||
cp -a Changes LICENSE README \
|
||||
$PKG/usr/doc/$APP-$VERSION
|
||||
|
||||
mkdir -p $PKG/install
|
||||
[ -f $CWD/doinst.sh ] && cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
[ -f $CWD/doinst.sh.gz ] && zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
# Allow to run as non-root until now:
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
echo "*** Running as non-root, skipping makepkg."
|
||||
echo "*** Package contents is in $PKG directory."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $PKG
|
||||
makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-${BUILD}${TAG}.txz
|
||||
|
||||
# Clean up the extra stuff:
|
||||
if [ "$1" = "--cleanup" ]; then
|
||||
rm -rf $TMP/$SRC-$VERSION
|
||||
rm -rf $PKG
|
||||
fi
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue