diff --git a/BUILD_ORDER b/BUILD_ORDER index 89bd536..4b715c3 100644 --- a/BUILD_ORDER +++ b/BUILD_ORDER @@ -1,3 +1,4 @@ +libxkbcommon graphviz vala setproctitle diff --git a/build-cinnamon.sh b/build-cinnamon.sh index 2091e87..0137291 100755 --- a/build-cinnamon.sh +++ b/build-cinnamon.sh @@ -42,6 +42,7 @@ CHECKDUPLICATE=0 # Loop for all packages for dir in \ + libxkbcommon \ graphviz \ vala \ setproctitle \ diff --git a/libxkbcommon/README b/libxkbcommon/README new file mode 100644 index 0000000..4099b0a --- /dev/null +++ b/libxkbcommon/README @@ -0,0 +1,5 @@ +xkbcommon is a library to handle keyboard descriptions, including +loading them from disk, parsing them and handling their state. +It's mainly meant for client toolkits, window systems, and other +system applications; currently that includes Wayland, kmscon, +GTK+, Clutter, and more. diff --git a/libxkbcommon/libxkbcommon.SlackBuild b/libxkbcommon/libxkbcommon.SlackBuild new file mode 100644 index 0000000..06d2f20 --- /dev/null +++ b/libxkbcommon/libxkbcommon.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/sh + +# Slackware build script for libxkbcommon + +# Copyright 2013 Anton Sil'uev, Russia +# Copyright 2018 Isaac Yu +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# This script is modified for CSB project + +PRGNAM=libxkbcommon +VERSION=${VERSION:-0.8.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_csb} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +wget -c https://xkbcommon.org/download/$PRGNAM-$VERSION.tar.xz + +CWD=$(pwd) +TMP=${TMP:-/tmp/csb} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux \ + --disable-static + +make +make install-strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md NEWS PACKAGING $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} diff --git a/libxkbcommon/libxkbcommon.info b/libxkbcommon/libxkbcommon.info new file mode 100644 index 0000000..80fb616 --- /dev/null +++ b/libxkbcommon/libxkbcommon.info @@ -0,0 +1,10 @@ +PRGNAM="libxkbcommon" +VERSION="0.8.2" +HOMEPAGE="https://xkbcommon.org/" +DOWNLOAD="https://xkbcommon.org/download/libxkbcommon-0.8.2.tar.xz" +MD5SUM="5f7f8533f907ebcfb1cf8dceb9501264" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu1@isaacyu1.com" diff --git a/libxkbcommon/slack-desc b/libxkbcommon/slack-desc new file mode 100644 index 0000000..2fc5187 --- /dev/null +++ b/libxkbcommon/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +libxkbcommon: libxkbcommon (library to handle keyboard descriptions) +libxkbcommon: +libxkbcommon: libxkbcommon is a keymap compiler and support library which processes +libxkbcommon: a reduced subset of keymaps as defined by the XKB specification. +libxkbcommon: Primarily, a keymap is created from a set of +libxkbcommon: Rules/Model/Layout/Variant/Options names, processed through an +libxkbcommon: XKB ruleset, and compiled into a struct xkb_keymap, which is +libxkbcommon: the base type for all xkbcommon operations. +libxkbcommon: +libxkbcommon: libxkbcommon does not distribute a dataset itself, other than for +libxkbcommon: testing purposes.