code:
[mirrors]
http://nongnu.uib.no/sysvinit/sysvinit-2.88dsf.tar.bz2

[vars]
filesize=105551
sha512=0bd8eeb124e84fdfa8e621b05f796804ee69a9076b65f5115826bfa814ac1d5d28d31a5c22ebe77c86a93b2288edf4891adc0afaecc4de656c4ecda8a83807bf
desc="Only the 'last' utility from the sysvinit package. Required by Puppy Linux."

[deps]

[build]
cd src
cc -ansi -O2 -fomit-frame-pointer -W -Wall -D_GNU_SOURCE -c -o last.o last.c
cc last.o oldutmp.h -o last || exit 1

dest="$butch_install_dir""$butch_prefix"
mkdir -p $dest/bin
install -m755 -s last $dest/bin
cd ..

path: pkg/sysvinit-utils-cut


code:
[vars]
filesize=12926
sha512=bcad873251be6b5de21311531e8d24330003b42790cb94d559a0d1be45408b3e0722c14e7c7f2cefd0717fd2a2d7a100fa08fc4e10e7bb669935909602286553

[mirrors]
http://dl.suckless.org/tools/tabbed-0.6.tar.gz

[deps]

[build]
sed -i 's,PREFIX = /usr/local,PREFIX= /,' config.mk

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

repo_name: aarf/bkauler

path: pkg/tabbed

license: unknown


code:
[mirrors]
http://ftp.gnu.org/gnu/tar/tar-1.28.tar.xz

[vars]
filesize=1966884
sha512=0e590abb82ef0202a1f659012477c9ff30d035729b7df47c9c8604901fb0bcdd970386dbc9a6256df63cfd7e629617076fea6ce9735213218f69601daa76c486
desc="The GNU Tape ARchiver program"

[deps]

[build]
#these are from T2...
patch -p1 < "$K"/tar-compar_does_not_need_fd.h.patch
patch -p1 < "$K"/tar-1.13.18-manpage.patch
sed -i -e '/gets is a/d' gnu/stdio.in.h

CFLAGS="$optcflags" \
  LDFLAGS="$optldflags" FORCE_UNSAFE_CONFIGURE=1 \
    ./configure -C --prefix="$butch_prefix" $xconfflags \
      --enable-shared --disable-static
make -j$MAKE_THREADS || exit 1
make DESTDIR="$butch_install_dir" install

path: pkg/tar


code:
[mirrors]
http://downloads.sourceforge.net/project/tcl/Tcl/8.6.4/tcl8.6.4-src.tar.gz

[vars]
filesize=8915556
sha512=f348224f6c63aa899345a5c9b84d6ad1c0bfce5e22a86e4319900b561787855473888bd284f7ee55edf552ce32792b78649526af3641b0dff46590cad53b2489
tardir=tcl8.6.4
desc='interpreter for the TCL scripting language'

[deps]
sqlite

[build]
patch -p1 < "$K"/tcl-stat64.patch
rm -rf pkgs/*sqlit*
cd unix
rm -rf *sqlit*
rm -rf pkgs/*sqlit*
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  tcl_cv_strtoul_unbroken=ok \
  tcl_cv_strtod_unbroken=ok \
  tcl_cv_strstr_unbroken=ok
make -j$MAKE_THREADS CFLAGS_DEFAULT=
make DESTDIR="$butch_install_dir" install
cd ..

path: pkg/tcl


code:
[mirrors]
http://www.tcpdump.org/release/tcpdump-4.6.1.tar.gz
http://www.uk.tcpdump.org/release/tcpdump-4.6.1.tar.gz
http://tcpdump.cybermirror.org/release/tcpdump-4.6.1.tar.gz

[vars]
filesize=1105053
sha512=f465f03dc5056b3440f5f132a1ba0c0b54f7470da903678251985bf27b418f2c24c65bfa837e0977388c9e37c5b7d6a25167c89f98d47c2bd5f8bde3d47c07bd
desc='sniff and dump network and usb traffic'

[deps]
libpcap

[build]
if [ -n "$CROSS_COMPILE" ] ; then
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') ac_cv_linux_vers=3"
  tru=/usr/bin/true
  [ -x /bin/true ] && tru=/bin/true
fi
CPPFLAGS="-D_GNU_SOURCE -D_BSD_SOURCE" \
CFLAGS="$optcflags" \
LDFLAGS="$optldflags -static" \
LIBS="-lpcap -lnl-tiny" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  --without-crypto ac_cv_path_PCAP_CONFIG=$tru td_cv_buggygetaddrinfo=no
make -j$MAKE_THREADS AR="$CROSS_COMPILE"ar RANLIB="$CROSS_COMPILE"ranlib
make DESTDIR="$butch_install_dir" install
rm "$butch_install_dir""$butch_prefix"/sbin/tcpdump.4.6.1

path: pkg/tcpdump


code:
[mirrors]
ftp://prep.ai.mit.edu/pub/gnu/termcap/termcap-1.3.1.tar.gz
http://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz

[vars]
filesize=439416
sha512=2bc2829af05a942e6041e9f2de7c9c50e466cd525f056c58c4f664b0e39012d901276737b7c2576450613694f16ae6b195e22913d8835aa345b5d88faddb0b69
[deps]

[build]
patch -p1 < "$K"/termcap.patch
./configure --prefix="$butch_prefix"

make -j$MAKE_THREADS CFLAGS="-D_GNU_SOURCE -fPIC $optcflags"
make DESTDIR="$butch_install_dir" install
dest="$butch_install_dir""$butch_prefix"/etc
mkdir -p $dest
cp termcap.src "$dest"/termcap

path: pkg/termcap


code:
[vars]
filesize=3812944
sha512=6f9c5142db3b155bd601149b5632807b3c20dcfa7006ce5f7e120e6fc4b2174a3f4671c18232c040ffd69ebfb5950be5c563ac5cc08b88d03eb5a9f1b0f96c04

[mirrors]
http://ftp.gnu.org/gnu/texinfo/texinfo-5.2.tar.xz

[deps.host]
perl

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

if false ; then
# needs evalution which host tool provides "install-info"
cd "$butch_install_dir"/share/info
rm -vf dir
for f in *
  do install-info $f dir 2>/dev/null
done
cd -
fi

path: pkg/texinfo


code:
[mirrors]
http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.5.0.14/source/thunderbird-1.5.0.14-source.tar.bz2

[vars]
filesize=36183747
sha512=57af87d11109d3ba1ae0e0b06531f4254ccdf7fb27fb5eabecce0c7945d33938c3604f214d3141772a367d754987eff3171f86e3dbbf79ff57f32b46d818b320
tardir=mozilla

[deps.host]
perl
zip

[deps]
cairo
glib
gtk+2
libidl

[build]
patch -p1 < "$K"/thunderbird1-getprotobyname_r.patch
patch -p1 < "$K"/thunderbird1-linux-detection.patch
patch -p1 < "$K"/thunderbird1-chrome-registry.patch
patch -p1 < "$K"/thunderbird1-useragent.patch
patch -p1 < "$K"/thunderbird1-putentry.patch

# https://bugzilla.mozilla.org/show_bug.cgi?id=416463
rm xpcom/obsolete/component/nsFileSpecImpl.h \
   xpcom/obsolete/component/nsIRegistry.idl \
   xpcom/obsolete/component/nsIRegistryUtils.h \
   xpcom/obsolete/component/regExport.cpp

cp xpinstall/cleanup/InstallCleanupDefines.h xpfe/bootstrap/
cp xpinstall/cleanup/InstallCleanupDefines.h toolkit/xre/

#  --enable-xpcom-obsolete \
#  --disable-xul \
#  --disable-jsloader \
#  --disable-composer \
#  --disable-xpfe-components \
#  --enable-plaintext-editor-only \

#ac_cv_path_ZIP=/bin/true \
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
./configure --prefix="$butch_prefix" \
  --enable-application=mail \
  --enable-system-cairo \
  --with-x \
  --with-pthreads \
  --disable-freetypetest \
  --disable-gtktest \
  --disable-ldap \
  --disable-postscript \
  --disable-xprint \
  --disable-xpinstall \
  --disable-gnomevfs \
  --disable-gnomeui \
  --disable-jsd \
  --disable-oji \
  --disable-accessibility \
  --disable-xtf \
  --disable-mathml \
  --disable-installer \
  --disable-updater \
  --disable-tests \
  --disable-libIDLtest \
  --disable-glibtest \
  --disable-cookies \

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[deps]
tzdata
tzcode

path: pkg/timezones


code:
[mirrors]
http://downloads.sourceforge.net/project/timidity/TiMidity++/TiMidity++-2.14.0/TiMidity++-2.14.0.tar.bz2

[vars]
filesize=1611424
sha512=274b2a700cd10c7034ffae50b989419f971c79eac71c8e20649e4138f9710be0505bd99379b23e772b5af5aa86a636e4070e522f43d06007ceacc25f61261c8a
tardir=TiMidity++-2.14.0

[deps]
curses

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"
sed -i 's@if test "x\$prefix" != xNONE -a@if false -a@' configure
CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  lib_cv_va_copy=yes \
  lib_cv___va_copy=no \
  lib_cv_va_val_copy=no \
  --enable-ncurses
make CC=cc -C timidity calcnewt
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/timidity


code:
[mirrors]
https://github.com/tinyproxy/tinyproxy/releases/download/1.8.4/tinyproxy-1.8.4.tar.xz

[vars]
filesize=192300
sha512=23398a2c8a6d926b371086ba96032d0fd8dd06d114edf24950b868f53bb6b4235cd0f5d6b9a0131879fcc16bbe6b71142a6855de593a937ef7b0c323b50e0aec
desc="lightweight HTTP proxy"

[deps]

[build]
#patch -p1 < "$K"/some.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags \
    tinyproxy_cv_regex_broken=no ac_cv_path_A2X=true

for i in docs  ; do
        printf 'all:\n\ttrue\ninstall:\n\ttrue\clean:\n\ttrue\n' > "$i"/Makefile
done

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/tinyproxy


code:
[mirrors]
http://heanet.dl.sourceforge.net/project/tcl/Tcl/8.6.4/tk8.6.4-src.tar.gz

[vars]
filesize=4266426
sha512=d0a1d1fd0938af4a9e532aa1bd4488647cff05f98e9e09b5fa16b773364a5d61030b7975541c688c7e0afc0bde60d49ce50a24d842549bab1622a0255e267909
tardir=tk8.6.4
desc='graphical toolkit to create gui apps with the TCL scripting language'

[deps]
tcl
libx11

[build]
cd unix

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir --with-tcl=$butch_root_dir$butch_prefix/lib"

CFLAGS="-D_GNU_SOURCE $optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/bin
ln -sf wish8.6 "$dest"/bin/wish

path: pkg/tk


code:
[mirrors]
https://github.com/tmux/tmux/releases/download/1.9a/tmux-1.9a.tar.gz
http://distfiles.macports.org/tmux/tmux-1.9a.tar.gz

[vars]
filesize=447938
sha512=842984638dc1f7364c03393187379598f35679d535d911d5df4016944d6032e61a1bf840d7d339c6e99b30c55581d470acca85ab6ee5799b8927d18c0e9a91df
uchkurl=https://github.com/tmux/tmux/releases/
desc='terminal multiplexer, similar to GNU screen but with more features'

[deps]
libevent
curses

[build]
patch -p1 < "$K"/tmux-imsg.patch
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE -D_BSD_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/tmux


code:
[mirrors]
https://gitlab.com/tome2/tome2/repository/archive.tar.bz2?ref=e3bd0ad5

[vars]
filesize=3048200
sha512=e9fb46f8f5bebb3bde2f151e5c412c88598bfcccbd1d8012a28cd280382c8609772409a48bbafdc25d8412b986f005c120553c7baff9f45af0e5e8e1671f4eeb
tardir=tome2-e3bd0ad5-e3bd0ad51f89ade115ce5ff1f1c3f8687353e36d
tarball=tome2-e3bd0ad5.tar.bz2

[deps]
sdl
sdl-ttf
sdl-image
jansson
curses

[deps.host]
cmake

[build]
mkdir -p build && cd build
[ -n "$CROSS_COMPILE" ] && xconfflags="
-DCMAKE_FIND_ROOT_PATH=$butch_root_dir$butch_prefix \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DFREETYPE_INCLUDE_DIR_freetype2=$butch_root_dir$butch_prefix/include/freetype2 \
"

CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags  -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
cmake $xconfflags \
  -DCMAKE_INSTALL_PREFIX="$butch_prefix" \
  -DCMAKE_VERBOSE_MAKEFILE=ON \
  -DSYSTEM_INSTALL:BOOL=true ..
make -j$MAKE_THREADS VERBOSE=1
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://jaist.dl.sourceforge.jp/tomoyo/53357/tomoyo-tools-2.5.0-20140601.tar.gz

[vars]
filesize=211411
sha512=c89e5257e8158e31e17c0d62735a1f8b7728c4c7e05d9e0e860ff637a575071b4b0ce7fca8162cde4659fecc2b047d0b79a45291df3612878dba48aaafa6b2d5
tardir=tomoyo-tools

[build]
make -j$MAKE_THREADS CFLAGS="-D_GNU_SOURCE -D__WALL=0x40000000 -D_LARGEFILE64_SOURCE"
make USRSBINDIR="$butch_prefix"/sbin USRLIBDIR="$butch_prefix"/lib MAN8="$butch_prefix"/share/man/man8 \
  INSTALLDIR="$butch_install_dir" install

path: pkg/tomoyo


code:
[mirrors]
https://www.torproject.org/dist/tor-0.2.7.6.tar.gz
http://mirror.hackthissite.org/tor/tor-0.2.7.6.tar.gz

[vars]
filesize=4869754
sha512=9b0dbfabe6cd05189b179da24bfaa73b89ab237775e3b5b0ebc0a22ee98909e9b13e55841a466f04000e0ff876c15f76515ff46abca28d05eeddbdc52f183afc
desc='onion router for anonymization of internet traffic'

[deps]
libressl
libevent

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"

CPPFLAGS=-D_GNU_SOURCE \
CFLAGS="$optcflags" \
LDFLAGS="$optldflags -static" \
  ./configure -C --prefix="$butch_prefix" $xconfflags tor_cv_cflags__fPIE=no \
  --disable-seccomp

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

IS="$K"/bin/butch-install-service
"$IS" --down --log --force tor "$K"/services/tor

path: pkg/tor


code:
[mirrors]
http://download-origin.transmissionbt.com/files/transmission-2.60.tar.xz

[vars]
filesize=2905156
sha512=0aea93263ce0bfb11629486a6f9d0ed9a5b0ec85cc15933271c073f73bb55f31ae6a32804b528093b2e435143ce3d6a25625bfb0411c75aaaf3832a7ffa26f34
desc='bittorrent p2p filesharing client'

[deps]
gtk+2
miniupnpc
libevent
libressl
curl

[build]
patch -p1 < "$K"/transmission-off_t.patch
# transmission insists on --enable-nls/intltool when gtk is selected
# - the only reason is the generation of the .desktop file
patch -p1 < "$K"/transmission-nls.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"

cp -f "$K"/config.sub .

sed -i 's@gtk_version="3"@gtk_version="2"@g' configure
CPPFLAGS="-D_GNU_SOURCE -DGETTEXT_PACKAGE=\\\"transmission\\\"" \
CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  --disable-nls --disable-silent-rules \
  --enable-utp
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/transmission


code:
[mirrors]
http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz

[vars]
filesize=47082
sha512=b234fb1428ba75da72d7e4aeb24bf961e123332342593e441b29a0baa2270d12bb187d889c179d6463c940c8dce9fe9dffeb4ad3f06cf11f057b83234d7b4b4a
desc='terminal app to display filesystem hierarchy in a tree structure'

[deps]

[build]
$CC $optcflags -static tree.c unix.c html.c xml.c hash.c color.c json.c -o tree $optldflags
dest="$butch_install_dir""$butch_prefix"
install -D tree "$dest"/bin/tree
install -D doc/tree.1 "$dest"/share/man/man1/tree.1

path: pkg/tree


code:
[deps.host]
bison

[deps]
libx11
libxmu
libxext
libice
libsm
libxt

[vars]
filesize=266272
sha512=9326ab5687734e09cf36f1993d085fb72ed24efefaa9e426f8adc10ae4bdbccc7bff741622beac7284c2b8c0b56b79e9b0172d4f149f660d5524c05104eb670a

[mirrors]
http://xorg.freedesktop.org/releases/individual/app/twm-1.0.6.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make LIBS="-lX11 -lxcb -lXau -lXdmcp" -j$MAKE_THREADS
mkdir -p ${butch_install_dir}${butch_prefix}/bin/
cp src/twm ${butch_install_dir}${butch_prefix}/bin/

path: pkg/twm


code:
[mirrors]
http://www.iana.org/time-zones/repository/releases/tzcode2013g.tar.gz

[vars]
filesize=171550
sha512=dd4475916fe36609155d72cfe434b387455ba860cee15fbbbb5caf37cc77757d467c4ae80e81396280e8d3fb68e131373151e8d0eee9bbf8674b96f99e0a9cbd
tardir=.

[deps]

[build]
mv Makefile Makefile.org
cat << EOF > Makefile
PACKAGE=        tzcode
VERSION=        2013g
BUGEMAIL=       tz@iana.org
TZCOBJS=        zic.o localtime.o asctime.o scheck.o ialloc.o
TZDOBJS=        zdump.o localtime.o ialloc.o asctime.o
OBJS=           zic.o zdump.o localtime.o ialloc.o asctime.o
PREFIX=/usr/local
MANDIR=\$(PREFIX)/share/man
BINDIR=\$(PREFIX)/bin
TZDIR=\$(PREFIX)/share/zoneinfo
all:	zic zdump tzselect
\$(OBJS):  version.h
version.h:
	(echo 'static char const PKGVERSION[]="(\$(PACKAGE)) ";' && \
	 echo 'static char const TZVERSION[]="\$(VERSION)";' && \
	 echo 'static char const REPORT_BUGS_TO[]="\$(BUGEMAIL)";') > \$@
tzselect: tzselect.ksh
	sed \
		-e 's|AWK=[^}]*|AWK=awk|g' \
		-e 's|\(PKGVERSION\)=.*|\1='\''(\$(PACKAGE)) '\''|' \
		-e 's|\(REPORT_BUGS_TO\)=.*|\1=\$(BUGEMAIL)|' \
		-e 's|TZDIR=[^}]*|TZDIR=\$(TZDIR)|' \
		-e 's|\(TZVERSION\)=.*|\1=\$(VERSION)|' \
	< \$? > \$@
	chmod +x \$@
zdump:  \$(TZDOBJS) version.h
	\$(CC) -o \$@ \$(CFLAGS) \$(LDFLAGS) \$(TZDOBJS) \$(LDLIBS)
zic:    \$(TZCOBJS) version.h
	\$(CC) -o \$@ \$(CFLAGS) \$(LDFLAGS) \$(TZCOBJS) \$(LDLIBS)
install: all zic.8 zdump.8 tzselect.8 tzfile.5
	install -D -m 644 zic.8 \$(DESTDIR)\$(MANDIR)/man8/zic.8
	install -D -m 644 zdump.8 \$(DESTDIR)\$(MANDIR)/man8/zdump.8
	install -D -m 644 tzselect.8 \$(DESTDIR)\$(MANDIR)/man8/tzselect.8
	install -D -m 644 tzfile.5 \$(DESTDIR)\$(MANDIR)/man5/tzfile.5
	install -D -m 755 zic \$(DESTDIR)\$(BINDIR)/zic
	install -D -m 755 zdump \$(DESTDIR)\$(BINDIR)/zdump
	install -D -m 755 tzselect \$(DESTDIR)\$(BINDIR)/tzselect
EOF

make -j$MAKE_THREADS \
  CFLAGS="-D_GNU_SOURCE $optcflags -DHAVE_STDINT_H" \
  LDFLAGS="$optldflags" \
  PREFIX="$butch_prefix" \
  DESTDIR="$butch_install_dir" \
  all install

path: pkg/tzcode


code:
[mirrors]
http://www.iana.org/time-zones/repository/releases/tzdata2013g.tar.gz

[vars]
filesize=226943
sha512=84107da6eb8bbc9063b06e422eb6ef4a5952039b90b4c86f6cc6ccecb370d1482dddf8be472d498b98cbb3ac6f7a0ed374f8b83613989a7d7a3a228b8910ac71
tardir=.

[deps.host]
tzcode

[build]
# http://www.linuxfromscratch.org/lfs/view/SVN-20131015/chapter06/glibc.html
ZONEINFO="$butch_install_dir""$butch_prefix"/share/zoneinfo
mkdir -p $ZONEINFO/posix
mkdir -p $ZONEINFO/right

for tz in etcetera southamerica northamerica europe africa antarctica  \
          asia australasia backward pacificnew solar87 solar88 solar89 \
          systemv; do
    zic -L /dev/null   -d $ZONEINFO       -y "sh yearistype.sh" ${tz}
#    zic -L /dev/null   -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
#    zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
done

cp -v zone.tab iso3166.tab $ZONEINFO
# this here is not your local timezone, it's the one required by POSIX
# to be the one of new york.
zic -d $ZONEINFO -p America/New_York

path: pkg/tzdata


code:
[deps.host]
dynamic-toolchain

[deps]
ubase-tarball

[vars]
versionstr=$(cat "$K"/ubase.version)
tarball=ubase-"$versionstr".tar.bz2

[build]
# attention: a random salt will only be generated if the getrandom syscall is available
patch -p 1 < "$K"/ubase-passwd-bcrypt.patch
make -j$MAKE_THREADS \
 PREFIX="$butch_prefix" \
 CFLAGS="$optcflags" \
 LDFLAGS="$optldflags -static" \
 passwd
install -Dm 6755 passwd "$butch_install_dir""$butch_prefix"/bin/passwd

path: pkg/ubase-passwd


code:
[vars]
filesize=40096
sha512=2752812457c5ddc9507c1a4be4c3a0d848cd9113ba3bbd2efe5107fdfd794ef9857ce3015d608dacc3d8c1cd4382605c2432c31074b28b30f16fb9b43063c2b0
versionstr=$(cat "$K"/ubase.version)

[mirrors]
http://git.suckless.org/ubase/snapshot/ubase-"$versionstr".tar.bz2

path: pkg/ubase-tarball


code:
[vars]
filesize=10067674
sha512=5c0725c9c5c7c9101d7ef8eb659aafb513ca5742fbafec55e0b64cd68b3e37520de55f71aebba59bf979b8daef2b0c71645b5ab343b7057d601b3cd6ffc6e763

[mirrors]
ftp://ftp.denx.de/pub/u-boot/u-boot-2013.07.tar.bz2

[deps]

[build]
patch -p1 < "$K"/uboot-ulong.patch

make HOSTCFLAGS_XXX+="-D_GNU_SOURCE $optcflags" \
  HOSTLDFLAGS_XXX+="$optldflags" \
  tools -j$MAKE_THREADS

dest="$butch_install_dir""$butch_prefix"
install -D -m 755 tools/mkimage "$dest"/bin/mkimage

path: pkg/uboot


code:
[mirrors]
http://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz

[vars]
filesize=534881
sha512=7dd1824d01b4bb41ee03bbceddc634a9f7f910d235e5cca163d783680d6743f0f3cc309bbbcc1e094d897d549d3805a555f9093b4d77805443d896dd1862aa34

[deps]

[build]

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/ucl


code:
[mirrors]
http://www.ibiblio.org/pub/X11/contrib/utilities/unclutter-8.tar.gz

[vars]
filesize=9002
sha512=863dc6d0b15d865a3367d3528373b74a228f5960f2912dd6ad1d74c4feebe7cc637a2ec02cd8e88e0396a0fdaf0f7960dccff0d2b333b554d602d8376f868665
desc="Unclutter hides the X mouse cursor after a period of inactivity"
tardir=unclutter

[deps]
libx11
xproto

[build]
#patch -p1 < "$K"/unclutter-fix-makefile.patch #from T2
#sed -i -e 's%/usr/%/%' Makefile
#sed -i -e 's%/bin/X11%/bin%' Makefile
#hmmm, it would be easier not to use the Makefile, just do:
gcc -O -c -o unclutter.o unclutter.c
[ -f unclutter ]  && rm -f unclutter
gcc -o unclutter unclutter.o -O -lX11

#make -j$MAKE_THREADS
#make DESTDIR="$butch_install_dir" install
dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/bin
install -m755 -s unclutter "$dest"/bin

path: pkg/unclutter


code:
[mirrors]
https://github.com/bengardner/uncrustify/archive/uncrustify-0.61.tar.gz

[vars]
filesize=1149607
sha512=9de150e625d73af1af0ebf513d2ebd57a36e2d3be2b88fb4eefc4622f7aa6e68832a7b771c39a84e7b1b4da5a685ab97ac4f8a083a9675f424d59bf2024026c7
tardir=uncrustify-uncrustify-0.61

[build]
if [ -n "$CROSS_COMPILE" ] ; then
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir --with-protoc=protoc"
  type protoc >/dev/null || {
    echo "error: need protoc installed on the host" ; exit 1 ;
  }
fi
CXXFLAGS="-D_GNU_SOURCE $optcflags" \
CFLAGS="-D_GNU_SOURCE -DSTDC_HEADERS $optcflags" \
LDFLAGS="$optldflags" \
 ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/uncrustify


code:
[vars]
filesize=38600
sha512=07805a2ca90354ed0f8feac3ab0005cc4bba64200172e019f00eb50786776c94a6f976a7c383b17b30373e628838ef94cced510d475d557cafb1a2b309d058f0

[mirrors]
http://podgorny.cz/unionfs-fuse/releases/unionfs-fuse-0.26.tar.xz

[deps]
fuse

[build]
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  make -j$MAKE_THREADS DESTDIR="$butch_install_dir" PREFIX="$butch_prefix" \
  SBINDIR="$butch_prefix/bin" install

path: pkg/unionfs-fuse


code:
[mirrors]
http://www.rarlab.com/rar/unrarsrc-5.0.14.tar.gz

[vars]
filesize=209707
sha512=91b05bd2974e0a1cb8bd8f01ee90637c9c48da71a4ffa74e161de969f17bedbcda0cfbac128d366ffa5065e8195004fe82763a2a1e8628f0016621b1c2d364f2
tardir=unrar
desc="extractor for RAR archives"

[deps]

[build]
make V=1 -j$MAKE_THREADS \
  CXX="$CXX" CXXFLAGS="$optcflags" LDFLAGS="$optldflags" \
  STRIP=true
make DESTDIR="$butch_install_dir" install

path: pkg/unrar


code:
[mirrors]
http://downloads.sourceforge.net/infozip/unzip60.tar.gz

[vars]
filesize=1376845
sha512=0694e403ebc57b37218e00ec1a406cae5cc9c5b52b6798e0d4590840b6cdbf9ddc0d9471f67af783e960f8fa2e620394d51384257dca23d06bcd90224a80ce5d

[build]
make -f unix/Makefile flags -j$MAKE_THREADS \
CFLAGS_BZ="-D_GNU_SOURCE $optcflags" LFLAGS1="$optldflags" \
CC="$CC" AS="$CROSS_COMPILE"as STRIP=true LF2=

sed -i 's@-DNO_LCHMOD@@' flags
sed -i 's@-O3@'"$optcflags"'@' flags

make -f unix/Makefile generic -j$MAKE_THREADS

make prefix="$butch_install_dir""$butch_prefix" -f unix/Makefile install

path: pkg/unzip


code:
[mirrors]
http://upx.sourceforge.net/download/upx-3.91-src.tar.bz2

[vars]
filesize=904747
sha512=7e9a392fe11daf7baf9632f2c448ef9936da7dfab215f86ba417e9f097770949acb653aaabe6cc5ed812efc486cb35e0c1e128c80026b02825713d8b12251cf5

[deps]
ucl
zlib

[build]
cd src

make V=1 -j$MAKE_THREADS exeext= CXXFLAGS_WERROR="$optcflags"
dest="$butch_install_dir""$butch_prefix"
install -Dm 755 upx "$dest"/bin/upx

path: pkg/upx


code:
[mirrors]
http://dist.schmorp.de/rxvt-unicode/Attic/rxvt-unicode-9.22.tar.bz2

[vars]
filesize=931198
sha512=b39f1b2cbe6dd3fbd2a0ad6a9d391a2b6f49d7c5e67bc65fe44a9c86937f8db379572c67564c6e21ff6e09b447cdfd4e540544e486179e94da0e0db679c04dd9

[deps]
xorg-proto-headers
xorg-libraries

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags \
  --enable-xft --disable-font-styles --disable-perl \
  --disable-utmp --disable-wtmp --disable-pixbuf \
  --disable-startup-notification --disable-transparency

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/urxvt


code:
[mirrors]
http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-2.2.0.tar.bz2

[vars]
filesize=261888
sha512=1311365c580035361e961ffefb84acf88771aae17d4b084733f2e0d10ac2ad770cf7d3b64c1c6cc400f19082530b425714f3afb88d10d6023e3798261a982e67

[deps]
usb-modeswitch-data
libusbx

[build]
cd jim/autosetup
cp -f "$K"/config.sub .
cd ..

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine)"
CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure --prefix="$butch_prefix" $xconfflags
cd ..

make V=1 PREFIX="$butch_install_dir""$butch_prefix" \
     -j$MAKE_THREADS -C jim lib
make DESTDIR="$butch_install_dir" PREFIX="$butch_install_dir""$butch_prefix"\
     install

path: pkg/usb-modeswitch


code:
[mirrors]
http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20140529.tar.bz2

[vars]
filesize=27383
sha512=e0ac311ae09dcf41b45e9434bf43e7964ec0a32ac68024216ddfb6d6fd9d3b484cbe663ec081841e11a4af80e50fce12f1a06e0249aa229558085886c0f25809

[deps]

[build]
patch -p1 < "$K"/usb-modeswitch-data.patch
#sed -i 's,-t,-D,g' Makefile
make DESTDIR="$butch_install_dir$butch_prefix" V=1 -j$MAKE_THREADS \
     PREFIX="$butch_install_dir$butch_prefix" install

path: pkg/usb-modeswitch-data


code:
[vars]
filesize=408420
sha512=bb9129a47c2e2099f535dcdefdcd8ddc3c269d5b0b7982d38ce89ce2fb068efba47843cc5e3ba609c30754880b7730504584d1540908b1069253be1b4fd7f113

[mirrors]
http://ftp.be.debian.org/pub/linux/utils/usb/usbutils/usbutils-006.tar.xz
ftp://www.kernel.org/pub/linux/utils/usb/usbutils/usbutils-006.tar.xz
http://www.kernel.org/pub/linux/utils/usb/usbutils/usbutils-006.tar.xz

[deps.host]
dynamic-toolchain

[deps]
libusbx

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CFLAGS="$optcflags" \
LDFLAGS="$optldflags" \
  ./configure --prefix="$butch_prefix" $xconfflags \
  --sbindir="$butch_prefix"/bin
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/lib/pkgconfig
mv "$dest"/share/pkgconfig/* "$dest"/lib/pkgconfig/
rm -rf "$dest"/share/pkgconfig

path: pkg/usbutils


code:
[vars]
tarball=util-linux-$(cat "$K"/util-linux.version).tar.xz

[deps]
util-linux-tarball
curses

[build]
patch -p1 < "$K"/util-linux.patch
patch -p1 < "$K"/util-linux-hexdump.patch

CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="-Wl,-static $optldflags -lcurses -lterminfo" \
./configure -C \
  --prefix="$butch_prefix" --with-ncurses --disable-shared  \
  --disable-silent-rules \
  --disable-nls --disable-libuuid --disable-mount           \
  --disable-fsck --disable-uuidd --disable-libblkid         \
  --disable-mountpoint --disable-fdformat --disable-hwclock \
  --disable-switch_root --disable-kill --disable-login      \
  --disable-sulogin --disable-su --disable-more             \
  --disable-pg \
  --disable-wall --disable-use-tty-group \

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/util-linux


path: pkg/util-linux-tarball


code:
[vars]
filesize=79105
sha512=0b8eaebd63d194aad5e395f9596e3099aa0a503dd892c62ef805f1a566c3a83eeca85d2bd47c680867e2903801bddc5cc0b097bf7db592fe289ead9ead891e04

[mirrors]
http://xorg.freedesktop.org/releases/individual/util/util-macros-1.17.1.tar.bz2

[build]
./configure -C --prefix="$butch_prefix"
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install
dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/lib/pkgconfig
mv "$dest"/share/pkgconfig/* "$dest"/lib/pkgconfig/
rm -rf "$dest"/share/pkgconfig

path: pkg/util-macros


code:
[mirrors]
http://www.linuxtv.org/downloads/v4l-utils/v4l-utils-1.6.3.tar.bz2

[vars]
filesize=1151081
sha512=8fa9f5e0af9c9f111ffbf4d2d599112e98017447623a83c484963ef32c495de195cbd53b4b9e1b2130e9c7ac0b5ab7a35e72e04ea4089db771028485e3c4df69

[deps]
argp
glu

[build]
patch -p1 < "$K"/v4l-utils-open64.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE -D__off_t=off_t -D__off64_t=off_t" \
CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib -largp" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://ftp.gnome.org/pub/gnome/sources/vala/0.20/vala-0.20.1.tar.xz

[vars]
filesize=2627808
sha512=6246228815bcc042de0aeea3f4593c95b0d81fdfec8a4336a8e9178dd8a4a7013694a2cec543c3c49aad026d5d3597e194884b6cfecb10040db886afba9e72e1

[deps]
glib
flex

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CFLAGS="-D_GNU_SOURCE $optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

dest="$butch_install_dir""$butch_prefix"

mkdir -p "$dest"/lib/pkgconfig
mv "$dest"/share/pkgconfig/* "$dest"/lib/pkgconfig/
rm -rf "$dest"/share/pkgconfig

path: pkg/vala


code:
[deps]
util-macros

[vars]
filesize=118862
sha512=57ca8981b217724e4e0599624e6d8077aca0f2568855c54b74dbf5e03d25864eb114540b02a49c11487beb03d55d52efc09d8a7fb86a3078a4d52f4a3042ef36

[mirrors]
http://xorg.freedesktop.org/releases/individual/proto/videoproto-2.3.2.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && xconfflags="--host=$($CC -dumpmachine)"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install

path: pkg/videoproto


code:
[deps]
curses

[mirrors]
ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2

[vars]
filesize=9843297
sha512=65d55da556ee283a364b376d251b70e430b7a157bb5a8ee89565060ff9937907966d416cffd33f701b3314d0fdf16efe00065f66bc8459469f5ae2f713418e0e
tardir=vim74
desc='a terminal-based text editor with a gazillion of features'

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"
CPPFLAGS="-D_GNU_SOURCE -include stdlib.h -DHAVE_SETENV -DHAVE_PUTENV" \
CFLAGS="$optcflags" \
LIBS="-lcurses -lterminfo" \
LDFLAGS="$optldflags -static" \
./configure -C $xconfflags \
  vim_cv_toupper_broken=no \
  --with-tlib=ncurses \
  vim_cv_terminfo=yes \
  vim_cv_tty_group=world \
  vim_cv_tty_group=world \
  vim_cv_getcwd_broken=no \
  vim_cv_stat_ignores_slash=no \
  vim_cv_memmove_handles_overlap=yes \
  --prefix="$butch_prefix" --mandir="$butch_prefix"/share/man --localstatedir="$butch_prefix"/var/lib/vim \
  --disable-nls --disable-netbeans --disable-gui --with-x=no --enable-multibyte

make -j$MAKE_THREADS
make -j1 STRIP=true VIMRCLOC="$butch_prefix"/etc DESTDIR="$butch_install_dir" install

path: pkg/vim


code:
[mirrors]
https://fedorahosted.org/released/virt-manager/virt-manager-0.9.5.tar.gz

[vars]
filesize=1773882
sha512=a1ecf6fe9f3ddacfe43006cfc388d9324c457be91767792119d8a112b190739e3274dfeb7cffd28534b86a33f86079c569d8337eeddaa9d60ed69f82d8a4627f

[deps]
python
python-pygtk
libvirt
python-virtinst

[build]
patch -p1 < "$K"/virt-manager-no-dbus.patch

CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix"

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

exit 1 # virt-manager depends on gconf, this needs to be fixed

cat << EOF > /dev/null
# these funcs need to be implemented in a pseudo-gconf python module
# which just writes to a config file:
conf.add_dir
conf.all_dirs
conf.count
conf.get
conf.get_bool
conf.get_int
conf.get_list
conf.get_string
conf.get_value
conf.notify_add
conf.notify_remove
conf.recursive_unset
conf.set_bool
conf.set_int
conf.set_list
conf.set_string
conf.suggest_sync
conf.unset
gconf.VALUE_STRING
gconf.client_get_default
gconf.escape_key
EOF

path: pkg/virt-manager


code:
[vars]
filesize=210060
sha512=dc6e949e73a3ce27103abd80c5011b885199a756f9625e52a9a4a9561cb339687cb49b7a0530e2b2cfa590bb76db0d0482d72a0390dfe75f9212d52016a1f150
desc='emulator for gameboy, gameboy color and gameboy advance'

[mirrors]
http://ftp.barfooze.de/pub/sabotage/tarballs/VisualBoyAdvanceSDL-1.8.1.tar.xz
http://foss.aueb.gr/mirrors/linux/sabotage/tarballs/VisualBoyAdvanceSDL-1.8.1.tar.xz
http://dl.2f30.org/mirrors/sabotage/tarballs/VisualBoyAdvanceSDL-1.8.1.tar.xz

[deps]
sdl
libpng
zlib

[build]
make PROGS=VisualBoyAdvance \
     CFLAGS="$optcflags" \
     LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
     prefix="$butch_prefix" DESTDIR="$butch_install_dir" \
     -j$MAKE_THREADS install

path: pkg/visualboyadvance


code:
[mirrors]
https://github.com/norayr/voc/archive/8b66c787da358c76b141503cc9e09f5292ca856d.tar.gz

[vars]
filesize=4219332
sha512=9b89c92d432df748fae377ec73a8f41a56c3c363a49b71d10da7b2ad28c72c6d5653419d531b64889143e62c48c2849e5fb299cacf7cf4e110c9bb82584a5a62
tardir=voc-8b66c787da358c76b141503cc9e09f5292ca856d

[deps.host]
sed

[build]
patch() {
   sed -i "s@PRF = \"/opt\"@PRF = \"$butch_root_dir$butch_prefix/opt\"@" $1
   sed -i 's@PREFIX = $(PRF)/voc-$(RELEASE)@PREFIX = $(PRF)/voc@' $1
   sed -i 's@PREFIXLN = $(PRF)/voc@@' $1
}
compile() {
   patch $1
   make -f $1
}

patch makefile
sed -i 's@ln -s $(PREFIX) $(PREFIXLN)@@' makefile
sed -i 's@rm -rf $(PREFIXLN)@@' makefile
sed -i 's@echo "$(PREFIX)/lib" > 05vishap.conf@@' makefile
sed -i 's@cp 05vishap.conf /etc/ld.so.conf.d/@@' makefile
sed -i 's@ldconfig@@' makefile

sed -i 's@("/voc-", prefix)@("/voc", prefix)@' src/voc/version.Mod
sed -i 's@Strings.Append(version, prefix).*@@' src/voc/version.Mod

if [ "$CC" = "gcc" ] ; then
   case "$A" in
      arm) compile makefile.linux.gcc.armv6j_hardfp ;;
      powerpc) compile  makefile.linux.gcc.powerpc ;;
      i386) compile  makefile.linux.gcc.x86 ;;
      x86_64) compile makefile.linux.gcc.x86_64 ;;
      *) echo "error: Not a supported arch!" && exit 1 ;;
   esac
elif [ "$CC" = "clang" ] ; then
   case "$A" in
      powerpc) compile makefile.linux.clang.powerpc ;;
      x86_64) compile makefile.linux.clang.x86_64 ;;
      *) echo "error: Not a supported arch!" && exit 1 ;;
   esac
fi

make install

path: pkg/voc


code:
[mirrors]
http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz

[vars]
filesize=1346532
sha512=d2473f2e8e6726b5a5083f567797ae42bbb7fa3f26aec3f7b83e641e028c64726299f71a9d75258595a53cf29c18acb84841bcbc39509258d2c8df859e4e3b99

[deps]
libogg
libvorbis-aotuv

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/vorbis-tools


code:
[mirrors]
http://ftp.gnome.org/pub/gnome/sources/vte/0.28/vte-0.28.2.tar.xz

[vars]
filesize=962340
sha512=d6a50481aaa8946cca3779e0b328fef551be534d70366a75385d1f8ead3fcddec57bed85c7d4bc2d9f34546532129e63083aafa33cbb0efcbc7dc9d66e7c45f6

[deps]
gtk+2

[build]
#patch -p1 < "$K"/some.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[vars]
filesize=372004
sha512=2475a5e8c2ef5c4bc97d90f946a89e4155d840a342886a7634df5423e5764973dbf5d721e1a8a941b7bd2305017cdcb74af7a29bee7bb8b58373306e5c03add7

[mirrors]
http://wayland.freedesktop.org/releases/wayland-1.7.0.tar.xz

[deps]
libffi
expat

[build]
CFLAGS="-DTFD_CLOEXEC=O_CLOEXEC" ./configure --prefix="$butch_prefix" --disable-documentation
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/wayland


code:
[mirrors]
http://webkitgtk.org/releases/webkitgtk-1.10.2.tar.xz

[vars]
filesize=8633640
sha512=0c2909eabdc9532619d6486cd42f18a4eb4868c02be3f1c62a6d11d2cb23b4d5a84dd9b60fc353a25134c4ecd8f7cc9f75690bfc17a0360fd4a4c1f4f07aac8f

[deps.host]
gperf
ruby
perl

[deps]
gst01-plugins-base
gtk+2
icu
libsoup
mesalib
sqlite
libxt
libxcomposite

[build]
patch -p1 < "$K"/webkitgtk1-assert.patch
# BLFS fixes for some issues
sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in
sed -i '/parse-param/ a%lex-param {YYLEX_PARAM}' \
             Source/ThirdParty/ANGLE/src/compiler/glslang.y
cp -f "$K"/config.sub Source/autotools/
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"
printf '#!/bin/sh\necho -licui18n -licuuc -licudata\n' > icu-config
chmod +x icu-config
PATH="$PWD:$PATH" \
CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,--no-keep-memory -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
	--with-gtk=2.0 --disable-webkit2 --disable-jit --disable-geolocation \
	--disable-fast-malloc --disable-glibtest \
	--disable-silent-rules --disable-gtk-doc-html

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://www.weechat.org/files/src/weechat-0.4.1.tar.bz2

[vars]
filesize=1772500
sha512=7b8abef303837d0aee61a113163cecb0834c0dd99b736d9c165e18de8bcd37f9a8307984a4c66038a51262ac15286d44bbd2e53b62ed437d410e4df35292a0ed

[deps]
libgcrypt
curl
curses

[build]
(
cd src/core

cat << EOF > config.h
#define WEECHAT_HOME "~/weechat"
#define WEECHAT_LIBDIR "$butch_prefix/lib"
#define WEECHAT_SHAREDIR "$butch_prefix/share"
#define LOCALEDIR "/dev/null/"
#define PACKAGE_NAME "weechat"
#define PACKAGE_VERSION "0.4.1"
#define PACKAGE_STRING PACKAGE_NAME " v" PACKAGE_VERSION
#define PACKAGE_VERSION_GIT ""
EOF

touch config-git.h

cp "$K"/weechat.Makefile Makefile

cat << EOF > config.mak
prefix = $butch_prefix
CFLAGS += -I. -D_GNU_SOURCE $optcflags
LDFLAGS += $optldflags -lncurses -lcurl -lgcrypt
EOF

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
)

# RCB flags needed to compile
cat << EOF > /dev/null
//RcB: DEP "*.c"
//RcB: DEP "../gui/*.c"
//RcB: DEP "../gui/curses/*.c"
//RcB: DEP "../plugins/*.c"
CFLAGS="-DHAVE_CONFIG_H -I."  rcb weechat.c -lncurses -lcurl -lgcrypt
EOF

path: pkg/weechat


code:
[mirrors]
http://ftp.gnu.org/gnu/wget/wget-1.17.tar.xz

[vars]
filesize=1884628
sha512=4936dad41580f6ba33df73de041e407cd6dd5266af4af947ebf4c54457f0f296e3462cfff1fb203b27ff5760ec4f6f4d24ea4faceeea461f98c22b031225947f

[deps]
libressl

[build]
printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > tests/Makefile.in
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags -std=gnu89" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" \
  --disable-nls \
  --with-ssl=openssl $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/wget


code:
[mirrors]
http://dl.winehq.org/wine/source/1.8/wine-1.8.2.tar.bz2

[vars]
filesize=22857786
sha512=ed4883443b29c00409143932de40c543a65acfc01ce61f223e6ed852e6869d1936e5d6c1c3942335d2fb6c9ee923f6187ba9f3207af9900911c4258c0266a321
desc='windows API emulator to execute win32 binaries. requires x86 32bit TC'

[deps.host]
flex
bison
freetype

[deps]
openal
alsa-lib
curses
libjpeg
libpng
libx11
freetype
kernel-headers
mesalib
glu

[build]
case "$A" in
  x86_64)
	printf "warning: building wine 64 bit (not compatible to win32)\n"
	configflags=--enable-win64
  ;;
  i[3-6]86)
	configflags=
  ;;
  *)
	printf "error: wine can only be compiled on x86 platforms\n"
	exit 1
  ;;
esac

patch -p1 < "$K"/wine-file_h.patch
patch -p1 < "$K"/wine-iphlpapi.patch

cp -f "$K"/config.sub tools/

[ -n "$CROSS_COMPILE" ] && {
  PKGCSR_SAVE="$PKG_CONFIG_SYSROOT_DIR"
  PKGCLD_SAVE="$PKG_CONFIG_LIBDIR"
  unset PKG_CONFIG_SYSROOT_DIR
  unset PKG_CONFIG_LIBDIR
  bit64=
  "$HOSTCC" -dM -E - </dev/null | grep __x86_64 >/dev/null && bit64=--enable-win64
  mkdir host
  cd host
  CPPFLAGS="-DHAVE_LINK_H -DNETDB_INTERNAL=-1" \
  CC="$HOSTCC" CFLAGS="-O0 -g0" LDFLAGS= \
  ../configure --disable-win16 --disable-tests $bit64 \
  --without-alsa --without-capi --without-cms --without-coreaudio --without-cups \
  --without-curses --without-dbus --without-fontconfig \
  --without-gettext --without-gphoto --without-glu --without-gnutls \
  --without-gsm --without-gstreamer --without-hal --without-jpeg --without-ldap \
  --without-mpg123 --without-openal --without-opencl --without-opengl --without-openssl \
  --without-osmesa --without-oss --without-png --without-sane --without-tiff \
  --without-v4l --without-xcomposite --without-xcursor --without-xinerama \
  --without-xinput --without-xinput2 --without-xml --without-xrandr \
  --without-xrender --without-xshape --without-xshm --without-xslt \
  --without-xxf86vm
  make CC="$HOSTCC" -j$MAKE_THREADS tools/Makefile __tooldeps__
  make CC="$HOSTCC" -j$MAKE_THREADS -C tools

  cd ..
  export PKG_CONFIG_SYSROOT_DIR="$PKGCSR_SAVE"
  export PKG_CONFIG_LIBDIR="$PKGCLD_SAVE"
  export FREETYPE_CFLAGS=-I"$butch_root_dir""$butch_prefix"/include/freetype2

  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir --with-wine-tools=host"
}

sed -i 's@EXTRALIBS =.*$@EXTRALIBS =$(LDFLAGS) -lz@' dlls/cabinet/Makefile.in

CPPFLAGS="-DHAVE_LINK_H -DNETDB_INTERNAL=-1" \
CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -L$butch_root_dir$butch_prefix/lib -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
./configure -C $xconfflags \
  --prefix="$butch_prefix" \
  --disable-win16 $configflags --disable-tests \
  --libdir="$butch_prefix"/lib --mandir="$butch_prefix"/share/man \

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/wine


code:
[mirrors]
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz

[vars]
filesize=294417
sha512=c169e29d53353e3d65913a5a5ba219752218968b0c036d4bfb25e7f3a9e31fe1e6adfcdbb410116e9c161c99aa3a7314fdc889ba36ba63f002d11ff9dba6974d

[deps]

[build]
patch -p1 < "$K"/wireless-tools-Makefile.patch
patch -p1 < "$K"/wireless-tools-headers.patch
# package causes gcc breakage when lto is used
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487
if [ x"$A" = xmips ] ; then
  optldflags=$(printf "%s" "$optldflags"|sed 's/-flto//g')
  optcflags=$(printf "%s" "$optcflags"|sed 's/-flto//g')
fi
sed -i 's@sbin@bin@' Makefile
make CFLAGS="-D_GNU_SOURCE -D_BSD_SOURCE $optcflags" \
     LDFLAGS="$optldflags -static" PREFIX="$butch_prefix" -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install
dest="$butch_install_dir""$butch_prefix"
mv "$dest"/bin/iwlist "$dest"/bin/iwlist-verbose
printf '#/bin/sh\niwlist-verbose "$@"|sed "/IE: Unknown/d"\n' > \
     "$dest"/bin/iwlist
chmod +x "$dest"/bin/iwlist

path: pkg/wireless-tools


code:
[mirrors]
http://www.wireshark.org/download/src/all-versions/wireshark-1.12.11.tar.bz2

[vars]
filesize=29307302
sha512=4752a56386bebab951044309381e736ed1e1bb5a7ea852d2e382be56493bd429d90f60868cd2914c43498dd1e0a2a26c350e3926383f2b75683fa3c16400f053
desc='sniff, decrypt, analyze and visualize network traffic'

[deps]
glib
libpcap
gtk+2
libgcrypt
gnutls
lua

[build]
patch -p1 < "$K"/wireshark-window-icon.patch
patch -p1 < "$K"/wireshark-dirent_macros.patch

for i in ui/export_object_smb.c epan/dissectors/packet-ssl-utils.c ; do
	sed -i 's@g_memmove@memmove@g' "$i"
done
sed -i 's@DISABLE_DEPRECATED@ENABLE_DEPRECATED@g' configure

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"

printf "#!/bin/sh\necho -lpcap\n" > pcap-config
chmod +x pcap-config
export PATH="$PWD:$PATH"

CPPFLAGS=-D_GNU_SOURCE \
CFLAGS="$optcflags -Werror=implicit-function-declaration" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  --with-qt=no --with-gtk2=yes --with-gtk3=no

[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make -C tools/lemon V=1 CC_FOR_BUILD=gcc
make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

dest="$butch_install_dir""$butch_prefix"
install -m644 -D wireshark.desktop "$dest/share/applications/wireshark.desktop"
install -m644 -D image/wsicon48.png "$dest/share/pixmaps/wireshark.png"

path: pkg/wireshark


code:
[deps]
cyassl

path: pkg/wolfssl


code:
[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/alphabetical/w/woofs-20160515.tar.gz

[vars]
filesize=6032304
sha512=423933fe6d9389748a04f58c2c77ce7d89b309b7da0c27a26fb06ce68b10fed7b83282e063c289ac2becacff9ce11e64569fb4b6382b63545ff65ca8684c6384
tardir=woofs
desc="Infrastructure and scripts to build Quirky Linux distribution"

[deps]

[build]
#this provides the infrastructure for building a Quirky Linux distribution.

dest="$butch_install_dir""$butch_prefix"
touch "$dest"/xxxxxxx
rm -rf "$dest"/*
cp -a * "$dest"/

ln -s -r "$dest"/create-quirky "$R"/sbin/create-quirky

exit 0

path: pkg/woofs


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=8936
sha512=ddbb883d861dc6698c83192f971f6925ffffde636446c117abb2c628ae04a150f38a33e5bcf63eff35ab5699e1e85d3710a01069bd6f04976e59a163962a7ea7
wordlist=carders.cc

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-carders-cc


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=3690
sha512=3bf4388f23029f9fa5be2bba5dcffe9f3a08cca73ca8ed919d4992ae6ed658b0166ca1d7851b565bcc44a6514b0327c7ac71e6e4f3562071da23b72197c1db39
wordlist=elitehacker

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-elitehacker


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=1368101
sha512=f5f0e5895bf5991c9996334b9411acecf8cf5c93568da4c23d53455306b6445f705da4bb1a875f88ac6bdda24be49e4d2f07f7592d964460bb739cb8c7d607d4
wordlist=english
desc='collection of english words'

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-english


code:
[mirrors]
https://downloads.skullsecurity.org/passwords/facebook-firstnames.txt.bz2

[vars]
filesize=16464124
sha512=72c4770909953fd2bca80cf6853d9d29efd004ffc3b218bf3fcd31b25fadca1672fa50e874c84bbbd64c975ad19fe64f57ce91cf60522b24662dee675efdb331

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/facebook-firstnames.txt

path: pkg/wordlist-facebook-firstnames


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/facebook-lastnames.txt.bz2

[vars]
filesize=21176444
sha512=12f2528b9a5bd440fec7dce5d9990cf9b704ed50f345c002d101f616c092eaf9b1b01304c8d2d8fb61c508d330da888184bd503787ae3645c96fce35f785db42

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/facebook-lastnames.txt

path: pkg/wordlist-facebook-lastnames


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=14457
sha512=5f745e603fbc2287227d6d851b8afbe82db270a3a9577c71d68c56707b0935abcd542197720174174f1547dfa6d4ac6e51d177a89f750a99233f3d7702e47cb2
wordlist=facebook-phished

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-facebook-phished


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=39327
sha512=48f78cd02d9e127022bce46200ee0264a337cceceb80118cdc6e2fb46e729ab8e43f160599066f628d2603f55ce9d7ee557d6deb2732614e2811b184d5f9f033
wordlist=faithwriters
desc='religious passwords'

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-faithwriters


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=2371487
sha512=59054d13b6dd0fd7fc78fd55ae3b82e48cf72f668a90276a58b6eb5769337b98295412aced62d00d5e98302a6ac94a0d17503fb3ef5097c885d10f56d8a6efb8
wordlist=german
desc='german words, compiled by brandon enright'

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-german


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=16490
sha512=2e3f9ba22eac5cb0b81c65e29b38e1ef3d007f7195adeb36236a23697649db9044a189d973628f4fab980187715b5c0872e7201577b19aab5ca65508f0f74569
wordlist=hak5

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=889525
sha512=53f675c88162f7a84dca082408da646498d98309048bf9fdd54b922e19a49954ed106c345e2080d4cd2a38f8eaaa9beb27899921013bd4edeb99532d8f1ab407
wordlist=honeynet

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-honeynet


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=47195
sha512=b56c977299d72b53e6ba1099e002ae942d130b3695a44b81110be1a03e68131f735452407e6bb2912085682ebfdecacc802c2c068eb8ec94ab10b396e3bfc62b
wordlist=hotmail

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-hotmail


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=175970
sha512=6a68efa2ddff69c71a2ac9d5d0133f68982e652bdf0dd41166f60c16b1cc15bfd3d1dbeef3c77d8138a2d99a2aae4c3ab5096a707fd76b846df772351ccb596e
wordlist=myspace

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-myspace


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=868606
sha512=604b036b57940ffe71c6591035c16d46b408bc7a746a29b4e5e848dd8ae77760a1b22d35556c5c93ae6f0e98d2c2ff9c9a8ea5c6a4e245db118aa41819b16846
wordlist=phpbb

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-phpbb


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=30600
sha512=701f84613c25c1b16b068a884c6ff0a30dfcb7009834ac067aae0f44fa656086ba792b197dbfa11c89581bb7acc1a1cf6eddd8cfa712757fabacbf5bb4666959
wordlist=porn-unknown

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-porn-unknown


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=7158285
sha512=5590776199bfa3f4f122cc1e264426fbcf7205dc9a8a44de66cb8145b70d2ddc5566fb6f51150ac57d0491f68c1c0e0ec5c8fa9dfeb94116b88a4964365b0d7d
wordlist=porno
desc='porno password collection created by matt weir'

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-porno


code:
[mirrors]
https://downloads.skullsecurity.org/passwords/rockyou.txt.bz2

[vars]
filesize=60498886
sha512=b7f74d3118bdb3703c5b546b56d98f20f59d4b1819918bdd7d0fb850feae7587268a00ab043e5bcff6f3e41588e8ad0891a9b926b8d7377f97a3daef92188fda

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/rockyou.txt

path: pkg/wordlist-rockyou


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=50697
sha512=3b80f64778bec1cf83f9af0ef10186d757c245b7950a1c09f3ca17522f6f1e7d9f7cddb692094c9e332dffb472331ec5615ef07ab1c3613b19fae411503c5727
wordlist=singles.org

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-singles-org


code:
[mirrors]
http://downloads.skullsecurity.org/passwords/$wordlist.txt.bz2

[vars]
filesize=176291
sha512=2c7d0f815d0a1b2910aebcc87aaba4a70f7f405a4356baec6207f3a16532a4c04b76152444fbc7a6b9616c1f7dcc9f5a232f4996e54a29e6b0d35e2f25efdd3a
wordlist=tuscl
desc='passwords from the ultimate strip club list'

[build]
dest="$butch_install_dir""$butch_prefix"/share/wordlists
mkdir -p "$dest"
bzcat "$C"/"$BUTCH_TARBALL" > "$dest"/"$wordlist".txt

path: pkg/wordlist-tuscl


code:
[deps]
stage1
pkg
xorg
gui
irssi
lxde
bsdtar
nmap
patchelf
php
phoronix-testsuite
procps
qemu
boost
dosbox
mksh
nodejs
rtorrent
ruby
lamp
nginx
socat

path: pkg/world


code:
[mirrors]
http://w1.fi/releases/wpa_supplicant-2.5.tar.gz
http://hostap.epitest.fi/releases/wpa_supplicant-2.5.tar.gz

[vars]
filesize=2607336
sha512=e3ca36ed10b4dae8f663e98ad230c8c059c952316c21a6b0638ecb1b40a5ef1b9083138ab45207cb764a17e870b4bd0625dd6efdb65856cb4dca13ccc0559e81
desc='service to support WPA(2) encryption of wireless networks'

[deps]
libnl-tiny
libressl
zlib

[build]
patch -p1 < "$K"/wpa_supplicant-fflush.patch
patch -p1 < "$K"/wpa_supplicant-action_script.patch
patch -p0 < "$K"/wpa_supplicant25-libressl.patch
patch -p0 < "$K"/wpa_supplicant25-eloop.patch
cd wpa_supplicant
cp defconfig .config

CFLAGS="-D_GNU_SOURCE -I$butch_prefix/include/libnl-tiny \
  -DLIBNL1_COMPAT \
  -DCONFIG_LIBNL20 \
  -D__int32_t=int32_t -D__int16_t=int16_t -D__uint8_t=uint8_t \
  -D__uint32_t=uint32_t -D__uint16_t=uint16_t \
  -include stdint.h $optcflags" \
  LDFLAGS="-lz $optldflags" make -j$MAKE_THREADS CONFIG_LIBNL_TINY=y V=1
make BINDIR=/bin DESTDIR="$butch_install_dir" install

dest="$butch_install_dir""$butch_prefix"
install -D -m 600 "$K"/wpa_supplicant.conf "$dest"/etc/wpa_supplicant.conf
for m in wpa_background.8 wpa_cli.8 wpa_passphrase.8 wpa_supplicant.8 ; do
install -D -m 644 doc/docbook/$m "$dest"/share/man/man8/$m
done
install -D -m 644 doc/docbook/wpa_supplicant.conf.5 \
  "$dest"/share/man/man5/wpa_supplicant.conf.5

IS="$K"/bin/butch-install-service
"$IS" --down --log --force wpa_supplicant "$K"/services/wpa_supplicant

path: pkg/wpa-supplicant


code:
[vars]
filesize=616256
sha512=ae5c762012595ce8922bfda8749ad3e9cb055edab30152c3a5feaaf3ca6601f357d1e301b179e9a5860cd99452dd6e63e5f44f5bcc12f8db148bdd334e0200a5

[mirrors]
http://www.abisource.com/downloads/wv/1.2.9/wv-1.2.9.tar.gz

[deps]
libpng
libgsf

[build]
[ -n "$CROSS_COMPILE" ] && xconfflags="--host=$($CC -dumpmachine)"
cp -f "$K"/config.sub .
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure --prefix="$butch_prefix" $xconfflags \
   ac_cv_path_mkdir="mkdir -p"

# ^ the shipped install-sh is ancient and doesnt support the
# mkdir -p functionality which autoconf wants to use:
# install-sh -c -d "$DESTDIR/$bindir" - it causes cp to be
# called instead with wrong args

[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/wv


code:
[mirrors]
http://heanet.dl.sourceforge.net/project/wxwindows/2.8.12/wxGTK-2.8.12.tar.gz
http://surfnet.dl.sourceforge.net/project/wxwindows/2.8.12/wxGTK-2.8.12.tar.gz
http://switch.dl.sourceforge.net/project/wxwindows/2.8.12/wxGTK-2.8.12.tar.gz

[vars]
filesize=12834260
sha512=5db19299fd4607c943ceaceaf5ef666d03f6473d09957233055564ed6b2e916383835436c375f65b3ad40be2cbfe7c3ce1f3a52c9a3aa7c86602853667f13847
uchkurl=https://sourceforge.net/projects/wxwindows/files/

[deps]
gtk+2
libxinerama
libsm

[build]
cp -f "$K"/config.sub .
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"
#the first block matching the below sed does stupid things:
#it sets HOST_SUFFIX and other variables which will later be hardcoded in
#.so name and header paths
sed -i 's@if test "\$cross_compiling" = "yes"; then@if false ; then@' configure
sed -i 's@SEARCH_LIB=.*$@SEARCH_LIB='"$butch_root_dir""$butch_prefix"'/lib@' \
  configure
CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags \
  --enable-unicode wx_cv_func_snprintf_pos_params=yes \
  wx_cv_func_strptime_ok=yes

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make -j$MAKE_THREADS V=1

make DESTDIR="$butch_install_dir" install
(
  cd contrib/src/stc
  make -j$MAKE_THREADS
  make DESTDIR="$butch_install_dir" install
)

cat << EOF > wxgtk.pc
prefix=$butch_prefix
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include

Name: wxgtk
Description: wxgtk lib
Version: 2.8.12
Libs: -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
Cflags: -D__WXGTK__ -I\${libdir}/wx/include/gtk2-unicode-release-2.8 -I\${includedir}/wx-2.8
EOF
install -Dm 644 wxgtk.pc "$butch_install_dir"/lib/pkgconfig/wxgtk.pc

path: pkg/wxgtk


code:
[mirrors]
http://download.sourceforge.net/dejavu/dejavu-fonts-ttf-2.33.tar.bz2

[vars]
filesize=4881324
sha512=67cb905c62f264267326f824be60c7a9f1d880ccc44b7ebc4acefe0f5ea4e89e82d3ad506e4cd588e8e070fe1418414b6be2dcde68f3be0f7f37d90ad4608376

[deps]

[build]
fontsdir="$butch_install_dir/share/fonts/dejavu"
confddir="$butch_install_dir/etc/fonts/conf.d"
confadir="$butch_install_dir/etc/fonts/conf.avail"

mkdir -p "$fontsdir" "$confddir" "$confadir"
install -m 0644 ttf/*.ttf "$fontsdir/"

cd fontconfig
install -m644 *.conf "$confadir/"
for x in *.conf; do
  ln -s ../conf.avail/$x "$confddir/"
done
cd ..


code:
[mirrors]
http://ftp.x.org/archive//individual/font/font-misc-misc-1.1.2.tar.bz2

[vars]
filesize=1933789
sha512=d0bf74142f9621746846ea7a6fe9ae298a303a09c65e05c7decb4f37b2f513a88d727bf3dc5a3566c30de83b83493f164be0118b41d704464f75700b55018c74

[deps.host]
mkfontdir
bdftopcf
font-util

[build]
#patch -p1 < "$K"/some.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
https://download.videolan.org/x264/snapshots/x264-snapshot-20160430-2245-stable.tar.bz2

[vars]
desc="X264 is a free and open source H.264 codec implementation."
filesize=727710
sha512=901e3b7db6f50d99ab3ecec619fd997953e18a08bd8504b02148198588be14589a640ab6a78a3ddc74d0847925d8eb45bff5e9a0015eb61f6575f4827f43d9cd

[build]
#--disable-asm for platform independence. otherwise, need yasm.

sed -i 's%^#!/bin/bash$%#!/bin/ash%' configure

CFLAGS="$optcflags" \
  LDFLAGS="$optldflags" \
    ./configure --prefix="$butch_prefix" $xconfflags \
      --disable-asm --disable-cli --enable-shared --disable-static
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
https://download.videolan.org/pub/videolan/x265/x265_1.9.tar.gz

[vars]
filesize=956101
sha512=1c399101374da58d0661786a6144dd25a2028e25bcb99b3084d8839b0bd9c20bccf5c0e4413882f16b3b1c49f96710746a16cb690f3811dffb08c3befdc8e5f1
desc="X265 is a free and open source H.265 codec implementation."

[deps]
cmake

[build]
#note, yasm optional dep for x86-specific build.
#patch -p1 < "$K"/x265-copying.patch
#patch from: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/x265.html
patch -p1 < "$K"/x265-1.9-enable_static-1.patch

#got this lot from KEEP/pkg_skel/cmake, changed "build" to "bld"...
mkdir -p bld && cd bld
for i in ar ld nm objcopy objdump strip ; do
printf '#!/bin/sh\n%s%s "$@"\n' "$CROSS_COMPILE" "$i" > "$CROSS_COMPILE""$i"
chmod +x "$CROSS_COMPILE""$i"
done
[ -n "$CROSS_COMPILE" ] && xconfflags="
-DCMAKE_FIND_ROOT_PATH=$butch_root_dir$butch_prefix \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DCMAKE_AR="$CROSS_COMPILE"ar \
-DCMAKE_LD="$CROSS_COMPILE"ld \
-DCMAKE_NM="$CROSS_COMPILE"nm \
-DCMAKE_OBJCOPY="$CROSS_COMPILE"objcopy \
-DCMAKE_OBJDUMP="$CROSS_COMPILE"objdump \
-DCMAKE_STRIP="$CROSS_COMPILE"strip \
"

#change path from ".." to "../source", add "-DENABLE_STATIC=OFF"
CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="$optldflags  -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
CXXFLAGS="$optcflags" \
cmake $xconfflags \
  -DCMAKE_INSTALL_PREFIX="$butch_prefix" \
  -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_STATIC=OFF \
  ../source
make -j$MAKE_THREADS VERBOSE=1
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/xarchive-0.2.8-6-i18n.tar.bz2

[vars]
filesize=137842
sha512=0716f03af38a26889decb8eea4615fdcd17c1c688013896c374e5a2379ded558732a0bfacd2b7a3e31861c763aee5752d609206472cd61c71bbbbb6392f3a68a
desc="A frontend to 7zip, arj, bzip2, gzip, iso, rar, lha, deb, rpm, tar and zip. Note: this is NOT xarchiver."

[deps]
gtk+2
zlib
zip
unzip
bzip2
xz
gettext-gnu

[build]
#use i18n source. refer: http://bkhome.org/blog/?viewDetailed=02836

CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="$optldflags" \
  ./configure --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

dest="$butch_install_dir""$butch_prefix"
cd src
[ -f xarchive.pot ] && rm -f xarchive.pot
xgettext --keyword="_" main.c -o xarchive.pot widgets_gtk.c myfc_gtk.c
mkdir -p "$dest"/share/doc/nls/xarchive
install -m644 xarchive.pot "$dest"/share/doc/nls/xarchive
cd ..

path: pkg/xarchive


code:
[deps]

[build]
# TODO
exit 0
#CFLAGS=-D_GNU_SOURCE ./configure -C --prefix="$butch_prefix"
#make -j$MAKE_THREADS
#make DESTDIR="$butch_install_dir" install

path: pkg/xarchiver


code:
[deps]
libx11
libxext
libxmu
libxau

[vars]
filesize=129568
sha512=d459dc2b8e38ed46eb45075306edbe2cb5a927823944a693e44cb7ab63ed0c10a8a04aa4697dfa74b13240f5407191dfbc190515a8de00c16f7e207554a26b86

[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xauth-1.0.5.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
LDFLAGS="$optldflags" \
CFLAGS="$optcflags -D_GNU_SOURCE -D_BSD_SOURCE" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make LIBS="-lX11 -lxcb -lXau -lXdmcp" -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xauth


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xbitmaps-1.1.0.tar.bz2

[vars]
filesize=101645
sha512=cf499a15adc1004354c15849bf715e6ae671b01a007fee0135642d536f35f882928ffcaa696f165415e60d5c635f6944291b96558840e3beb202d8294d6fee11

[deps]
libx11

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xbitmaps


code:
[deps.host]
python

[mirrors]
http://xcb.freedesktop.org/dist/xcb-proto-1.10.tar.bz2

[vars]
filesize=138834
sha512=b979d6432dcb58b5040a460ecb5285c67d288203768e2b6d032acac6593219dda9f29ae95920bc10b1d9451d928e3295f49d8e457b2bfb69d06481219745c6de

[build]
# xcb-proto will create ${destdir}lib when prefix is empty (missing slash)
[ -z "$butch_prefix" ] && butch_prefix=/

./configure -C --prefix="$butch_prefix"
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install

path: pkg/xcb-proto


code:
[mirrors]
http://xcb.freedesktop.org/dist/xcb-util-0.3.8.tar.bz2

[vars]
filesize=266339
sha512=977ce6867981c5fdc382917632c03e0298803b8aab110ef9bdbd3611ddfad6d7f8ad79a5d5a25e820750a84a986d8668ae20749a35aa4c3a5d11ae04af194043

[deps]
libxcb

[build]
cat << EOF > ./gperf
#!/bin/sh
printf %s "XXX called with $@"
EOF
chmod +x ./gperf
export PATH="$PWD:$PATH"

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') --with-sysroot=$butch_root_dir"

CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

patch -p1 < "$K"/libtool-sysroot.patch

cp "$K"/xcb-util_atom.c src/atom.c
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xcb-util


code:
[vars]
filesize=280852
sha512=599f9074a9801615a29374a96649c2d9d8de8abd053b7ddb245b7cc50a1c9c94610a8df996a7a79a831ade3d903335fdf7ac299e6b33e735ab087c3fe5923d71

[mirrors]
http://xcb.freedesktop.org/dist/xcb-util-cursor-0.1.1.tar.bz2

[deps]
libxcb
xcb-util-renderutil
xcb-util-image

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xcb-util-cursor


code:
[vars]
filesize=310947
sha512=6cf7e191f3814528d977aa2acb2a106aaba0732c5d5f4041ac39039e18b9064f90f96da087300f4061d700e3521648e5540117794fdc41dad36ca5f973370394

[mirrors]
http://xcb.freedesktop.org/dist/xcb-util-image-0.3.9.tar.bz2

[deps]
xcb-util
libxcb

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags \
  --disable-selective-werror \
  --disable-silent-rules

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xcb-util-image


code:
[vars]
filesize=286075
sha512=0c7f9afea5886145760ff055fa9d38ac886306bca926b00c0c7da770b5e9a941887383922b144441d82fd071784cf94334773eae39b59aee094d570778f8f8f8

[mirrors]
http://xcb.freedesktop.org/dist/xcb-util-keysyms-0.3.9.tar.bz2

[deps]
libxcb
xcb-util

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xcb-util-keysyms


code:
[vars]
filesize=257492
sha512=d2f94d23628383a1d2c861e0bfbe6452b89efd1003348dcfacfae9249b49fefb91efdec4cd5f5fc0aadd6f6b72cb2b866089e42b5006f9394fb6b68cb484fa8e

[mirrors]
http://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.8.tar.bz2

[deps]
libxcb

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xcb-util-renderutil


code:
[vars]
filesize=320472
sha512=69f5840a8c27ae56f454962476bc246b56b3520562e26d31dae8388050abe3ebf9d1bcea512f830eaf63887b12df685a0f14c5c4cc963c3605330de29dcee0f1

[mirrors]
http://xcb.freedesktop.org/dist/xcb-util-wm-0.3.9.tar.bz2

[deps]
libxcb

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xcb-util-wm


code:
[mirrors]
http://downloads.sourceforge.net/project/xclip/xclip/0.12/xclip-0.12.tar.gz

[vars]
filesize=63420
sha512=6c769878004c02d87b9eca2b33dc34edb40acc59be767a6481f207a74d52fca3725a040b0c8deffa1419b687bd73cf3124a090413c06787c0dd137b0ede795e0

[deps]

[build]

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xclip


code:
[deps]
expat
libx11
libxrender
libxft
libxdmcp
libxaw
libxmu
libxkbfile
freetype

[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xclock-1.0.7.tar.gz

[vars]
filesize=203799
sha512=8658ec74d435ab30bce652622155c7ad4a664c781f9794256fe28db4800cbdaefbdffa37afca8e27aa4b0373efcca709e0cf4e79e1c8f803c1e9dedd19a4517b

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
CFLAGS="$optcflags" \
CPPFLAGS="-D_GNU_SOURCE -D_BSD_SOURCE" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xclock


code:
[deps]
util-macros

[vars]
filesize=112486
sha512=33060d0f9bba92670fce6e42f5d9094e84b803fd07e61b159aafdbee40a9876b49cf844bc7bae4c628fbb11a6a0883a9ee07041b59290488f1e9dbfe6e5128a8

[mirrors]
http://xorg.freedesktop.org/releases/individual/proto/xcmiscproto-1.2.2.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install

path: pkg/xcmiscproto


code:
[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/xcur2png-0.7.0.tar.bz2

[vars]
filesize=78139
sha512=83e1bea67c404321ba7e67464c81bfc2dde941b5ee80c46d9d4e1365751ea1e85f7bce43aeae6ec98f694f7b96de914e0c373ddcc10905c1829315af63d13b7e
desc="Converter from X cursor to PNG image"

[deps]
libpng
xcursorgen

[build]
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/xcursorgen-1.0.6.tar.bz2

[vars]
filesize=124545
sha512=3b464b7be3cec8c6d2bf4538266108bdc09e1dae4053d573f7f38e004929b41be0d996aa54918490fa040655644e2b0d4fab1ec24cca014d77bdb91c41ab1db4
desc="X cursor file generator"

[deps]

[build]
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" install

path: pkg/xcursorgen


code:
[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/xdelta30p.tar.bz2

[vars]
filesize=147036
sha512=91ea3beb5ced9164fd5da036a80dea57cab50c65f119a7dd4779ce62f53ada49998bdd3e0dbe79ea49a512096894072c96634e121c6a1da8a71821f7526f7f55
desc="Xdelta is a tool and library for differential compression"
tardir=xdelta30p

[deps]

[build]
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" make -j1 xdelta3 || exit 1

dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/bin
cp -a -f xdelta3 "$dest"/bin/


code:
[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/xdg_puppy-0.7.7.tar.bz2

[vars]
filesize=33647
sha512=f3138b1430c9a3d66b56517dce2b0546a60998a7ce5c890e4e2e92651a606ea5b3d56486bdff13976667f2c5b44804fb46089848900f4e52cad082240311a556
desc="Utilities to translate XDG specifications to window and tray managers. Designed for Puppy Linux."

[deps]
shared-mime-info
file
gnome-menus

[build]
dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/bin

cd fvwm-xdgmenu
make
install -m755 -s fvwm-xdgmenu "$dest"/bin
cd ..
cd icewm-xdgmenu
make
install -m755 -s icewm-xdgmenu "$dest"/bin
cd ..
cd jwm-xdgmenu
make
install -m755 -s jwm-xdgmenu "$dest"/bin
cd ..
cd openbox-xdgmenu
make
install -m755 -s ob-xdgmenu "$dest"/bin
cd ..
cd windowmaker-xdgmenu
make
install -m755 -s wm-xdgmenu "$dest"/bin
cd ..

path: pkg/xdg-puppy


code:
[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/xdialog-2.3.1-20110924_patched_extrabutton_dougal_default_nostrip_debian2.tar.bz2

[vars]
filesize=483817
sha512=9c452a9996ee5f686743d989f732b64bbebea1ef6d1a1c955e442d6fa8f5ed544ba7d2485612ae1d4f32296eee4125aeefeb38327ce7f6517fe3770405b990fb
desc="A utility for creating X11 dialog boxes from shell scripts"

[deps]
gtk+2

[build]
CFLAGS="$optcflags" \
LDFLAGS="$optldflags" \
  ./configure --prefix="$butch_prefix" $xconfflags --with-gtk2

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xdialog


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/proto/xextproto-7.2.99.901.tar.bz2

[vars]
filesize=229097
sha512=e2695da13b80e6a182fe5451838af868c4b65f4d99df38d00f746be31865bb251887471823902ca9219ff78dbde0094e84a71b88b17956783c82cd9684cfbabd

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" install

path: pkg/xextproto


code:
[deps]
eudev
xproto
libx11
xorg-server

[vars]
filesize=369337
sha512=8a9fce3b1d7a577a914d662b5a36dc43d56f16ae9318bbaf09fbd28ee572a69f40b7960d6d51ede9074284eed5a01732a4a246b43f8a1140cb8f1c0073ea189c

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-input-evdev-2.8.1.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) --with-sysroot=$butch_root_dir"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make V=1 DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-input-joystick-1.6.2.tar.bz2

[vars]
filesize=327539
sha512=2c3e9d9fefa8010198a895fea1caa0475c8005480b5db14fc7e547ae9ac4da2dbfa10e8ecbdcf7a6bf31c7590f6414685a11964ef00f6ca99b88e81b404f5ef8

[deps]
util-macros
xorg-server
xproto
inputproto

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-input-keyboard-1.8.0.tar.bz2

[vars]
filesize=323838
sha512=a4fcace65414f011fb4c5d68622182acef7d606fb1a121687244a0a3442c05906d54d30664c942eba8d7209e0dccefe733ab196c7c3ab8cf690e9fd715c87aa6

[deps]
util-macros
xorg-server
xproto
inputproto

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-input-mouse-1.9.1.tar.bz2

[vars]
filesize=348244
sha512=0b9647c21b949fe5b357de29028d823b5d385ebb5c59fddd53a11fceae3bf65e25bb988ac05d833abe7e071f6813d5a4dc4cdf61d240fc8a4f591866a86b5926

[deps]
xorg-server
xproto
inputproto

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[vars]
filesize=451614
sha512=66db2e51be11e582ba3ea761d5ab65d05278230ddbe7741d7ae58cd844136feb9fc934e1ddc4845bb9961fa5a63743c3e612893d9196b1745140e4105b69220a

[deps]
mtdev

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-input-synaptics-1.7.4.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-ati-7.5.0.tar.bz2

[vars]
filesize=809756
sha512=51ea3934285c579314614e336cee0d5c079a466cdc94f2c8649d9499515af3dfb37a7ac87ed69c6dbf6befa5bfca27f8305bbc028ff722e2f87143da5f101f7c

[deps]
xproto
libx11
xorg-server

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

./configure -C --prefix="$butch_prefix" $xconfflags \
  --disable-glamor
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
xproto
libx11
xorg-server

[vars]
filesize=327547
sha512=2af1b089527fb715b07b6d50da863972a1d063863e976c5e75576e70b502b74af43bc38adba917dc916f79d9d122ada41f49dcaf41b4b4289de012a4ef4be838

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-cirrus-1.5.2.tar.bz2

[build]
./configure -C --prefix="$butch_prefix"
make V=1 DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
xproto
libx11
xorg-server

[vars]
filesize=289056
sha512=0e29c3aab44246f53cdd74cc3236ebc705f0aedd496803f91e83c12dc2e31c52aac9bd86061667fb827b822a70262dd340153bafce706669b49fb1bf00d2e844

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-fbdev-0.4.3.tar.bz2
[build]
patch -p1 < "$K"/xf86-video-fbdev_mibstore.patch
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
xproto
libx11
xorg-server
libxvmc
xcb-util

[vars]
filesize=2241651
sha512=f44d6d9763587faa9723c47ca5c9c99e2595b2190168ac7cc8ea1fd9d9697ba5ba8ab3b2968913fa291a2fc908170bd1cf3de425312d96d68de458d03c503af4

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-intel-2.99.916.tar.bz2

[build]
patch -p1 < "$K"/xf86-video-intel-dri2.patch
./configure -C --prefix="$butch_prefix" \
  --enable-xvmc \
  --enable-dri2 \
  --disable-selective-werror

#  --enable-glamor \

make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
xproto
libx11
xorg-server

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-modesetting-0.9.0.tar.bz2

[vars]
filesize=304351
sha512=0e581deb3f09e932475c1ebf1e5a69239f6e0ac4d37bcc25ee9bc30083c1285c4a5645df960c7bd7103584512eff4149463195a985f469bd24f52059fd487cec

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nouveau-1.0.12.tar.bz2

[vars]
filesize=599816
sha512=dd3be4b89d4b39f02b7cbf058be90e6777adc61a580c0987e737056ff85ed2685e7d6a7848b2c7ab8957810e057d7693c5dd2c425f88609670e02ea8368d77e9

[deps]
xproto
libx11
libdrm
xorg-server

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nv-2.1.20.tar.bz2

[deps]
xproto
libx11
xorg-server

[vars]
filesize=396982
sha512=f7c3f00aa949bdffdcb180fa727204b1cdbbad560919e111c589f8614fd897186cdefe014714505aa4646419b4d8bb879eaca96fea032b56cc8c71ba7faa6373

[build]
patch -p1 < "$K"/xf86-video-nv-mibstore.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
./configure -C --prefix="$butch_prefix" $xconfflags

make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
xproto
libx11
xorg-server

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-vesa-2.3.3.tar.bz2
[vars]
filesize=300571
sha512=1e3768e757e889bb8707ce76cc6f54eb3beaf7d5b34750a0e7262612ae300e4cd42985b7cbcd72462b14c8d73945a22cec70ca6a52017491de41715d2ecbaca8
[build]
./configure -C --prefix="$butch_prefix"
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
xproto
libx11
xorg-server

[vars]
filesize=459255
sha512=43d6a15e40896c793e49a1670b937e417271baff15b737b6b8cd3845bb7d2fc6354bf53cb40350caf0e7aac1e005a0fb2c9c80ce25690678b79e8e48f05f1de0

[mirrors]
http://xorg.freedesktop.org/releases/individual/driver/xf86-video-vmware-13.1.0.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
util-macros

[vars]
filesize=49191
sha512=35b53ee1f428fee6777733264a7534a28ec6ffb29fc0ad9ab02337101d651ec94007bf840d0b591ee36a063280d4a4c71ff08f37100a63bb27581b5a9f69a710

[mirrors]
ftp://ftp.x.org/pub/individual/proto/xf86bigfontproto-1.2.0.tar.bz2

[build]
./configure -C --prefix="$butch_prefix"
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
util-macros

[vars]
filesize=85934
sha512=dab56f5e59d1099d0d462e2f056e073c0ebde46aae6b9cf1c12b1fda43b5f21fb438dc811305c3114e04eb2fd2b1d13ddbe0a1d9a5c8155525db82db00e1461c

[mirrors]
http://xorg.freedesktop.org/releases/individual/proto/xf86dgaproto-2.1.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[deps]
util-macros

[vars]
filesize=96528
sha512=dce0d4da1dd703a6cdfe7676537034d43c9e84d70f20afdfe59be7929a97fbd077fa7026e41c0fca8aafd5fe666b2ee99265c8e94e69263bdf46e2be9ff34df2

[mirrors]
ftp://ftp.x.org/pub/individual/proto/xf86driproto-2.1.1.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install


code:
[vars]
filesize=96822
sha512=d68784339271226a71360253b5f35d9cbec483801b4df3684bd070b1208a478edf9e5f55f1ff8ff186c81c56fb6e105e8cebad43d650cdbe605eed10bb7c7c50

[mirrors]
http://xorg.freedesktop.org/releases/individual/proto/xf86vidmodeproto-2.3.1.tar.bz2

[deps]

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags -D_GNU_SOURCE" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install


code:
[mirrors]
https://www.x.org/releases/individual/app/xgamma-1.0.6.tar.bz2

[vars]
filesize=123105
sha512=2d41798e15ac8c6f6731a2da29589207d936eaee1223ce6f3ca948e67d63c5c8b955d11c7db092dcd8c66a6209bd15c1de3dc1446dad4b4277134f010c6fc47a

[deps]

[build]
CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xgamma


code:
[vars]
filesize=96239
sha512=ec2194c9bcad3f0f3eb3e9298792272213aa032ae9d6c00dcad567f31d7278a8c676fc67f47aae1a6deef5bade0b204346ed16da4a4c4d5a507c04d109d3dbb3

[mirrors]
ftp://ftp.x.org/pub/individual/proto/xineramaproto-1.2.1.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" install

path: pkg/xineramaproto


code:
[deps]
libx11
libxdmcp

[vars]
filesize=138315
sha512=afb525e8fce9e460f513926a7aeb3344b064834b1d5031ba30400fa2bcb5bddada57b4e42b49f839bbcd177b8ee8fd30b75844c69b5ec786508ab2b221fe528e

[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xinit-1.3.0.tar.bz2

[build]
patch -p1 < "$K"/xinit-startx_hostname.patch
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags -D_GNU_SOURCE" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make LIBS="-lX11 -lxcb -lXau -lXdmcp"
make PREFIX="$butch_prefix" DESTDIR="$butch_install_dir" install

path: pkg/xinit


code:
[deps]
libx11
libxkbfile
libxdmcp
libxau
libxcb

[vars]
filesize=217437
sha512=cdb6c643b4f1eac828e8da8be5e8293deab883de0318e337d356af14bbc6240c86359dc7982d2e1c4394f2919b253ebabf16a7b5d67187619c696ecdb8bcad27

[mirrors]
ftp://ftp.x.org/pub/individual/app/xkbcomp-1.2.1.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags" LDFLAGS="$optldflags" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make LIBS="-lX11 -lxcb -lXau -lXdmcp" -j$MAKE_THREADS V=1
make DESTDIR="$butch_install_dir" install

path: pkg/xkbcomp


code:
[deps]
intltool
gettext
xkbcomp

[deps.host]
xkbcomp

[vars]
filesize=559151
sha512=b7d3c6ede10a9f00c56328bd8e7fa01073031e29549f5d08a6a273670248a4ce6a58d994e5e234bf999080f0d7efd2d2ba970d176475dd5eb20a21ef01c6eab8

[mirrors]
ftp://ftp.x.org/pub/individual/data/xkeyboard-config-1.4.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && xconfflags="--host=$($CC -dumpmachine)"
CFLAGS="$optcflags" LDFLAGS="$optldflags" \
./configure -C --prefix="$butch_prefix" $xconfflags \
  --with-xkb_base="$butch_prefix"/share/X11/xkb --with-xkb-rules-symlink=xorg

for i in po ; do
	printf 'all:\n\ttrue\ninstall:\n\ttrue\clean:\n\ttrue\n' > "$i"/Makefile
done

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xkeyboard-config


code:
[mirrors]
https://www.x.org/releases/individual/app/xload-1.1.2.tar.bz2

[vars]
filesize=136745
sha512=9c83d26bbb135cc0f2b3ef7f25b081cda5d080dd02b1c89195b40825a7d71211965b34336c853eb455472d9748f3edf64108455584b34b81673e2548806f423d

[deps]
libx11

[build]
#fails with: get_rload.c:27:29: fatal error: protocols/rwhod.h: No such file or directory
# this is a libc header.
# patch from: https://patchwork.ozlabs.org/patch/572303/
patch -p1 < "$K"/xload-fix-get_rload.patch

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xload


code:
[deps]
libx11
libxft
libxdmcp
libxaw
libxmu

[vars]
filesize=115587
sha512=10f91015c0c2f57dfe854906774d3ff7c015690de613c1ccefdd63e430753843dd5b5aac771252bb28b11e098a6fa78d529079d824795b035145f874060aa7cc

[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xlogo-1.0.3.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make LIBS="-lfontconfig -lXft -lexpat -lfreetype -lz -lxcb -lXau -lXdmcp -lSM -lXpm -lX11 -lXrender"
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install

path: pkg/xlogo


code:
[mirrors]
https://www.x.org/releases/individual/app/xmessage-1.0.4.tar.bz2

[vars]
filesize=125011
sha512=a087fb09595bf0b188a4525b45e9b607acd063cceae36c69c78a48674fb7eca1c82d5c2d2770c7f4425b499e4c002bfc0e377935308c218a330a2b4994b94ebd

[deps]

[build]
CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xmessage


code:
[mirrors]
https://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.25.tar.bz2
http://distfiles.lesslinux.org/xmlto-0.0.25.tar.bz2

[vars]
filesize=116496
sha512=53d99619f4c067dc72c0ccf32c85a4efa21d25666c4ed984c63a99ec2291c0264ea05ad79faa801feaddc599c7bcdb2fb851f0384a0989b527fb97ed4980ed48

[deps]
libxslt

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags

make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xmlto


code:
[mirrors]
http://downloads.sourceforge.net/project/xmms/xmms/1.2.6/xmms-1.2.6.tar.gz

[vars]
filesize=2855872
sha512=0b559f66520777e5e92ee6cf05c8fbeb899656c2246f6848cb484f5da70bd4316170eda6eaa96fd596849c152997d8ff939ff47f38a573938fd42e0c6a44c1b2

[deps]
glib
pkgconf

[build]
patch -p1 < "$K"/xmms-configure.patch
patch -p1 < "$K"/xmms-gtk.patch
patch -p1 < "$K"/xmms-ir.patch
patch -p1 < "$K"/xmms-leader_window.patch

mkdir PATH
printf '#!/bin/sh\npkg-config glib-2.0 $@\n' > PATH/glib-config
gtkflags=`pkg-config --libs --cflags gtk+-2.0 gthread-2.0`
printf "#!/bin/sh\nprintf \"$gtkflags -D_GNU_SOURCE -include string.h -include stdlib.h -DGTK_WINDOW_DIALOG=0 -Dgdk_error_warnings=errno\"\n" \
  > PATH/gtk-config
chmod +x PATH/glib-config
chmod +x PATH/gtk-config
export PATH="$PWD/PATH:$PATH"
CFLAGS="-D_GNU_SOURCE -include string.h -include stdlib.h -DGTK_WINDOW_DIALOG=0" \
./configure --prefix="$butch_prefix"
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xmms


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xmodmap-1.0.7.tar.gz

[vars]
filesize=167787
sha512=b9cdc91d6d40015076593db3e8050cbdd127834cba3f8b1703949eec259ad4ae90f5170520c22ec919c41150ac475317558658aaee70e4cd30494f4b43e1d63b

[deps]
libx11

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="-D_GNU_SOURCE $optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xmodmap


code:
[vars]
filesize=203088
sha512=14e85cb0a35edb7f1584e1b8485b502b8ac8b1ce8d6360f9d3d5cbb488379e25a6a19587c9bacd598cac13ca7ab8e07380cfbb7fb41fe54897fa3ef598de0da6

[mirrors]
http://downloads.sourceforge.net/project/xmp/xmp/4.0.10/xmp-4.0.10.tar.gz

[deps]
libxmp

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xmp


code:
[deps]
xorg-proto-headers
xorg-libraries
fontconfig
freetype
libfontenc
libice
libpthread-stubs
libsm
libx11
libxau
libxaw
libxcb
libxdmcp
libxext
libxfixes
libxfont
libxft
libxi
libxkbfile
libxmu
libxpm
libxrender
libxt
pixman
setxkbmap
twm
util-macros
xauth
xclock
xextproto
xinit
xkbcomp
xkeyboard-config
xlogo
xmodmap
xorg-server
xterm
xtrans
x11-font-dejavu
xf86-input-keyboard
xf86-input-mouse
xf86-input-joystick
xf86-input-evdev
xf86-video-fbdev
xf86-video-modesetting

path: pkg/xorg


code:
[deps]
xtrans
libx11
libxext
libfs
libice
libsm
libxscrnsaver
libxt
libxmu
libxpm
libxaw
libxfixes
libxrender
libxcursor
libxdamage
libfontenc
libxfont
libxft
libxi
libxinerama
libxrandr
libxres
libxtst
libxv
libxvmc
libxxf86dga
libxxf86vm
libdmx
libpciaccess
libxkbfile

path: pkg/xorg-libraries


code:
[deps]
bigreqsproto
compositeproto
damageproto
dmxproto
dri2proto
fixesproto
fontsproto
glproto
inputproto
kbproto
randrproto
recordproto
renderproto
resourceproto
scrnsaverproto
videoproto
xcmiscproto
xextproto
xf86bigfontproto
xf86dgaproto
xf86driproto
xf86vidmodeproto
xineramaproto
xproto

path: pkg/xorg-proto-headers


code:
[deps]
util-macros
pixman
xorg-proto-headers
xorg-libraries
libxkbfile
freetype
libfontenc
libxau
libxdmcp
libxfont
mesalib
libressl

[vars]
filesize=5806406
sha512=c0459ed95a6682b2094340b6b8fc7b59fcda5227ee2f13e87f68eb5c29b91cd3f05c5fc2126e33d6303beb3ad04d19466951ef4eb53f2e9918684cdaf3692c5a

[mirrors]
ftp://ftp.x.org/pub/individual/xserver/xorg-server-1.16.3.tar.bz2

[build]
printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > test/Makefile.in
sed -i 's/termio.h/termios.h/' hw/xfree86/os-support/xf86_OSlib.h
patch -p0 < "$K"/xorg-server-musl-arm.patch
patch -p1 < "$K"/xorg-server-gcc5.patch

[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine) \
  --with-sysroot=$butch_root_dir"

LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
CPPFLAGS="-D__gid_t=gid_t -D__uid_t=uid_t -DNOFILES_MAX=256 -D_GNU_SOURCE \
          -I$butch_root_dir$butch_prefix/include/pixman-1" \
CFLAGS=" $optcflags" \
  ./configure -C --prefix="$butch_prefix" \
    --enable-kdrive --enable-kdrive-evdev $xconfflags \
    --disable-xephyr
make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

# make /etc/X11 a symlink to /share/X11, so the config can be found easily
dest="${butch_prefix}${butch_install_dir}"
mkdir -p "$dest"/etc
ln -s ../share/X11 "$dest"/etc/

#copy our hacky X launcher script to /bin...
dest="${butch_prefix}${butch_install_dir}"/bin
mkdir -p "$dest"
cp "$K"/X "$dest"/

xmoddest="${butch_prefix}${butch_install_dir}"/share/X11/xorg.conf.d
mkdir -p "$xmoddest"
cp "$K"/20-modules.conf "$xmoddest"/

# FIXME starting X as non-root needs suid bit on the "server"
for i in Xfbdev Xorg ; do
	[ -e "$dest"/"$i" ] && chmod +s "$dest"/"$i"
done

path: pkg/xorg-server


code:
[vars]
filesize=145556
sha512=934a46423d4904e57a3f5fc4ffed469f85a9bb6a3544cd2d2f80cf7ac1e6ebe1de8b3631c99a4d32c0f02992fcc940e2938832751182f0996ba3a95017794572

[deps]
libx11
libxcb
libxau

[mirrors]
http://xorg.freedesktop.org/archive/individual/app/xprop-1.2.2.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

LIBS="-lxcb -lXau" \
CPPFLAGS="-D_GNU_SOURCE" CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" --disable-nls $xconfflags

#[ -n "$CROSS_COMPILE" ] && "$K"/libtool.cross.gen --sysroot="$butch_root_dir"

make V=1 -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xprop


code:
[mirrors]
ftp://ftp.x.org/pub/individual/proto/xproto-7.0.26.tar.bz2

[vars]
filesize=305321
sha512=b39edcb7f8a6898e78dae62b80cfb1db3175272dbfb7a3929f51c2fd829b648d80a9654246e4294a708f0e23cfe1bf84934cde25e193916d99630d8f157a04ea

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine)"
./configure -C --prefix="$butch_prefix" $xconfflags
make DESTDIR="$butch_install_dir" -j$MAKE_THREADS install

path: pkg/xproto


code:
[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xrandr-1.4.1.tar.bz2

[vars]
filesize=171963
sha512=da36a3e332c13f4c793be83528b4b9d77bfa2457a9159958ecfe92a460f2c645d353ec0bdd9d8c34ee77241931b030757cf3dead8b0049e1341ff79add0c247c

[deps]
libx11
libxrender
libxrandr

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"
CPPFLAGS=-D_GNU_SOURCE \
CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xrandr


code:
[deps]
libx11
libxext
libxmu

[vars]
filesize=138035
sha512=8e2a177653d5aa895c71ed3640e0f1dd9fe8bf5cd6f0c6ff7e372394a2a41c3aa2286905fd9c69e3d140024d235b81a1f32b5d4012b1ac5ac1ed945599dee407

[mirrors]
http://xorg.freedesktop.org/releases/individual/app/xrdb-1.1.0.tar.bz2

[build]
[ -n "$CROSS_COMPILE" ] && \
  xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/') \
  --with-sysroot=$butch_root_dir"

CPPFLAGS="-D_GNU_SOURCE -D_BSD_SOURCE" \
CFLAGS="$optcflags" CXXFLAGS="$optcflags" \
LDFLAGS="$optldflags -Wl,-rpath-link=$butch_root_dir$butch_prefix/lib" \
  ./configure -C --prefix="$butch_prefix" $xconfflags
make LIBS="-lX11 -lxcb -lXau -lXdmcp" -j$MAKE_THREADS
make DESTDIR="$butch_install_dir" install

path: pkg/xrdb