From 203f3b54ebf467156ade1e616e8d9c6c5d844be0 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 12 Nov 2020 17:13:16 +0100 Subject: [PATCH] Add static variants of serveral packages --- README.md | 24 +- bzip2/static/PKGBUILD | 46 +++ bzip2/static/bzip2.pc | 11 + dbus/static/PKGBUILD | 65 +++++ dbus/static/dbus-reload.hook | 13 + dbus/static/no-fatal-warnings.diff | 13 + expat/static/PKGBUILD | 47 +++ fontconfig/static/PKGBUILD | 64 +++++ freetype2-bootstrap/static | 1 + ...0001-Enable-table-validation-modules.patch | 42 +++ .../0002-Enable-subpixel-rendering.patch | 22 ++ ...3-Enable-infinality-subpixel-hinting.patch | 24 ++ .../0004-Enable-long-PCF-family-names.patch | 22 ++ freetype2/static-bootstrap/PKGBUILD | 56 ++++ ...0001-Enable-table-validation-modules.patch | 42 +++ .../0002-Enable-subpixel-rendering.patch | 22 ++ ...3-Enable-infinality-subpixel-hinting.patch | 24 ++ .../0004-Enable-long-PCF-family-names.patch | 22 ++ freetype2/static/PKGBUILD | 56 ++++ glib2/static/PKGBUILD | 69 +++++ glib2/static/noisy-glib-compile-schemas.diff | 24 ++ graphite/static/PKGBUILD | 49 ++++ harfbuzz/static/PKGBUILD | 60 ++++ keyutils/static/PKGBUILD | 50 ++++ keyutils/static/reproducible.patch | 24 ++ keyutils/static/request-key.conf.patch | 21 ++ libb2/static/PKGBUILD | 37 +++ libffi/static/PKGBUILD | 47 +++ libgcrypt/static/PKGBUILD | 54 ++++ libglvnd/static/LICENSE | 26 ++ libglvnd/static/PKGBUILD | 35 +++ libgpg-error/static/PKGBUILD | 42 +++ libice/static/PKGBUILD | 33 +++ libpng/static/PKGBUILD | 43 +++ libsm/static/PKGBUILD | 30 ++ libx11/static/PKGBUILD | 45 +++ libxau/static/PKGBUILD | 33 +++ libxcb/static/PKGBUILD | 44 +++ libxdmcp/static/PKGBUILD | 33 +++ libxext/static/PKGBUILD | 35 +++ libxkbcommon/static/PKGBUILD | 50 ++++ libxml2/static/PKGBUILD | 89 ++++++ ...relaxed-approach-to-nested-documents.patch | 33 +++ .../libxml2-2.9.10-CVE-2019-20388.patch | 33 +++ .../libxml2-2.9.10-CVE-2020-24977.patch | 36 +++ .../static/libxml2-2.9.10-CVE-2020-7595.patch | 32 +++ .../libxml2-2.9.10-fix-integer-overflow.patch | 41 +++ libxml2/static/libxml2-2.9.10-icu68.patch | 28 ++ ...xml2-2.9.10-parenthesize-type-checks.patch | 92 ++++++ ...libxml2-2.9.8-python3-unicode-errors.patch | 34 +++ lz4/static/PKGBUILD | 33 +++ openssl/static/PKGBUILD | 65 +++++ openssl/static/ca-dir.patch | 31 ++ pcre/static/PKGBUILD | 63 +++++ pcre2/static/PKGBUILD | 51 ++++ ...symfollow-for-helpers-on-user-mounts.patch | 37 +++ util-linux/static/PKGBUILD | 127 +++++++++ wayland/static/PKGBUILD | 39 +++ xcb-util-image/static/LICENSE | 267 ++++++++++++++++++ xcb-util-image/static/PKGBUILD | 39 +++ xcb-util-keysyms/static/LICENSE | 267 ++++++++++++++++++ xcb-util-keysyms/static/PKGBUILD | 37 +++ xcb-util-renderutil/static/LICENSE | 267 ++++++++++++++++++ xcb-util-renderutil/static/PKGBUILD | 37 +++ xcb-util-wm/static/LICENSE | 267 ++++++++++++++++++ xcb-util-wm/static/PKGBUILD | 37 +++ xcb-util/static/PKGBUILD | 37 +++ xz/static/PKGBUILD | 41 +++ zstd/static/PKGBUILD | 36 +++ 69 files changed, 3693 insertions(+), 3 deletions(-) create mode 100644 bzip2/static/PKGBUILD create mode 100644 bzip2/static/bzip2.pc create mode 100644 dbus/static/PKGBUILD create mode 100644 dbus/static/dbus-reload.hook create mode 100644 dbus/static/no-fatal-warnings.diff create mode 100644 expat/static/PKGBUILD create mode 100644 fontconfig/static/PKGBUILD create mode 120000 freetype2-bootstrap/static create mode 100644 freetype2/static-bootstrap/0001-Enable-table-validation-modules.patch create mode 100644 freetype2/static-bootstrap/0002-Enable-subpixel-rendering.patch create mode 100644 freetype2/static-bootstrap/0003-Enable-infinality-subpixel-hinting.patch create mode 100644 freetype2/static-bootstrap/0004-Enable-long-PCF-family-names.patch create mode 100644 freetype2/static-bootstrap/PKGBUILD create mode 100644 freetype2/static/0001-Enable-table-validation-modules.patch create mode 100644 freetype2/static/0002-Enable-subpixel-rendering.patch create mode 100644 freetype2/static/0003-Enable-infinality-subpixel-hinting.patch create mode 100644 freetype2/static/0004-Enable-long-PCF-family-names.patch create mode 100644 freetype2/static/PKGBUILD create mode 100644 glib2/static/PKGBUILD create mode 100644 glib2/static/noisy-glib-compile-schemas.diff create mode 100644 graphite/static/PKGBUILD create mode 100644 harfbuzz/static/PKGBUILD create mode 100644 keyutils/static/PKGBUILD create mode 100644 keyutils/static/reproducible.patch create mode 100644 keyutils/static/request-key.conf.patch create mode 100644 libb2/static/PKGBUILD create mode 100644 libffi/static/PKGBUILD create mode 100644 libgcrypt/static/PKGBUILD create mode 100644 libglvnd/static/LICENSE create mode 100644 libglvnd/static/PKGBUILD create mode 100644 libgpg-error/static/PKGBUILD create mode 100644 libice/static/PKGBUILD create mode 100644 libpng/static/PKGBUILD create mode 100644 libsm/static/PKGBUILD create mode 100644 libx11/static/PKGBUILD create mode 100644 libxau/static/PKGBUILD create mode 100644 libxcb/static/PKGBUILD create mode 100644 libxdmcp/static/PKGBUILD create mode 100644 libxext/static/PKGBUILD create mode 100644 libxkbcommon/static/PKGBUILD create mode 100644 libxml2/static/PKGBUILD create mode 100644 libxml2/static/fix-relaxed-approach-to-nested-documents.patch create mode 100644 libxml2/static/libxml2-2.9.10-CVE-2019-20388.patch create mode 100644 libxml2/static/libxml2-2.9.10-CVE-2020-24977.patch create mode 100644 libxml2/static/libxml2-2.9.10-CVE-2020-7595.patch create mode 100644 libxml2/static/libxml2-2.9.10-fix-integer-overflow.patch create mode 100644 libxml2/static/libxml2-2.9.10-icu68.patch create mode 100644 libxml2/static/libxml2-2.9.10-parenthesize-type-checks.patch create mode 100644 libxml2/static/libxml2-2.9.8-python3-unicode-errors.patch create mode 100644 lz4/static/PKGBUILD create mode 100644 openssl/static/PKGBUILD create mode 100644 openssl/static/ca-dir.patch create mode 100644 pcre/static/PKGBUILD create mode 100644 pcre2/static/PKGBUILD create mode 100644 util-linux/static/0001-libmount-don-t-use-symfollow-for-helpers-on-user-mounts.patch create mode 100644 util-linux/static/PKGBUILD create mode 100644 wayland/static/PKGBUILD create mode 100644 xcb-util-image/static/LICENSE create mode 100644 xcb-util-image/static/PKGBUILD create mode 100644 xcb-util-keysyms/static/LICENSE create mode 100644 xcb-util-keysyms/static/PKGBUILD create mode 100644 xcb-util-renderutil/static/LICENSE create mode 100644 xcb-util-renderutil/static/PKGBUILD create mode 100644 xcb-util-wm/static/LICENSE create mode 100644 xcb-util-wm/static/PKGBUILD create mode 100644 xcb-util/static/PKGBUILD create mode 100644 xz/static/PKGBUILD create mode 100644 zstd/static/PKGBUILD diff --git a/README.md b/README.md index b4872c97..be6f6b83 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,10 @@ Contains PKGBUILD files for creating Arch Linux packages: [Tag Editor](https://github.com/Martchus/tageditor), [Password Manager](https://github.com/Martchus/passwordmanager), ... * Packages [I maintain in the AUR](https://aur.archlinux.org/packages/?O=0&SeB=M&K=Martchus&outdated=&SB=v&SO=d&PP=50&do_Search=Go): * misc packages, eg. Subtitle Composer, openelec-dvb-firmware, Jangouts - * mingw-w64 packages which allow to build for Windows under Arch Linux, eg. FreeType 2, Qt 5 and Qt 6 - * android packages which allow to build for Android under Arch Linux, eg. iconv, Boost, OpenSSL, CppUnit, Qt 5 and Kirigami - * apple-darwin packages which allow to build for MaxOS X under Arch Linux, eg. osxcross and Qt 5 (still experimental) + * `mingw-w64-*` packages which allow to build for Windows under Arch Linux, eg. FreeType 2, Qt 5 and Qt 6 + * `*-static` packages containing static libraries + * `android-*` packages which allow to build for Android under Arch Linux, eg. iconv, Boost, OpenSSL, CppUnit, Qt 5 and Kirigami + * `apple-darwin-*` packages which allow to build for MaxOS X under Arch Linux, eg. osxcross and Qt 5 (still experimental) * Other packages imported from the AUR to build with slight modifications So if you like to improve one of my AUR packages, just create a PR here. @@ -164,3 +165,20 @@ Here are neverthless some useful hints to run WINE manually: * It is possible to run apps in an headless environment but be aware that WINE is not designed for this. For instance, when an application crashes WINE still attempts to show the crash window and the application stays stuck in that state. * See https://wiki.winehq.org/Wine_User's_Guide for more information + +## Static GNU/Linux libraries +This repository contains several `*-static` packages providing static libraries intended to distribute "self-contained" +executables. These packages are still experimental and are not be regularily updated at this point. + +It would conceivable to build even Qt as a static library and make even a fully statically linked executable. However, +it would not be possible to support OpenGL because glvnd and vendor provided OpenGL libraries are always dynamic libraries. It +is also not clear whether it makes sense to link against libc and X11/Wayland client libraries statically. Maybe it makes sense +to aim for a partially statically linked build instead where libc/OpenGL/X11/Wayland are assumed to be provided by the GNU/Linux +system but other libraries like Qt are linked against statically. This would be similar to AppImage where a lot of libraries are +bundled but certain "core libraries" are expected to be provided by the system. + +Note that I decided to let static libraries live within the subprefix `/usr/static` (in contrast to packages found in the +AUR). The reason is that the version might not be kept 100 % in sync with the shared counterpart. Hence it makes sense to +make the static packages independent with their own headers and configuration files to avoid problems due to mismatching +versions. Besides, some projects (such as Qt) do not support installing shared and static libraries within the same prefix at +the same time because the config files would clash. diff --git a/bzip2/static/PKGBUILD b/bzip2/static/PKGBUILD new file mode 100644 index 00000000..b21166c2 --- /dev/null +++ b/bzip2/static/PKGBUILD @@ -0,0 +1,46 @@ +# Contributor: Ronald van Haren +# Contributor: Judd + +_pkgname=bzip2 +pkgname=$_pkgname-static +pkgver=1.0.8 +pkgrel=1 +pkgdesc="A high-quality data compression program" +arch=('x86_64') +license=('BSD') +url="https://sourceware.org/bzip2/" +depends=('glibc' 'sh') +options=(staticlibs) +source=(https://sourceware.org/pub/bzip2/$_pkgname-$pkgver.tar.gz{,.sig} + bzip2.pc) +sha256sums=('ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269' + 'SKIP' + 'ad3c350428b73a1197e54d414a60fecfff23ecdd5059afd8ce2ca084d263064b') +validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard + +prepare() { + cd $_pkgname-$pkgver + cp ../bzip2.pc bzip2.pc + sed "s|@VERSION@|$pkgver|" -i bzip2.pc +} + +build() { + cd $_pkgname-$pkgver + + make libbz2.a CC="gcc $CFLAGS $CPPFLAGS $LDFLAGS" +} + +check() { + cd $_pkgname-$pkgver + make test +} + +package() { + cd $_pkgname-$pkgver + + install -dm755 "$pkgdir"/usr/static/{lib,include} + cp -a libbz2.a "$pkgdir"/usr/static/lib + install -m644 bzlib.h "$pkgdir"/usr/static/include/ + install -Dm644 bzip2.pc -t "$pkgdir"/usr/static/lib/pkgconfig + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/bzip2/static/bzip2.pc b/bzip2/static/bzip2.pc new file mode 100644 index 00000000..63d25704 --- /dev/null +++ b/bzip2/static/bzip2.pc @@ -0,0 +1,11 @@ +prefix=/usr/static +exec_prefix=/usr/static +bindir=${exec_prefix}/bin +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: bzip2 +Description: A file compression library +Version: @VERSION@ +Libs: -L${libdir} -lbz2 +Cflags: -I${includedir} diff --git a/dbus/static/PKGBUILD b/dbus/static/PKGBUILD new file mode 100644 index 00000000..5f374547 --- /dev/null +++ b/dbus/static/PKGBUILD @@ -0,0 +1,65 @@ +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Jan de Groot +# Contributor: Tom Gundersen +# Contributor: Link Dupont + +_pkgname=dbus +pkgname=$_pkgname-static +pkgver=1.12.20 +pkgrel=1 +pkgdesc="Freedesktop.org message bus system" +url="https://wiki.freedesktop.org/www/Software/dbus/" +arch=(x86_64) +license=(GPL custom) +depends=(expat-static) +makedepends=(xmlto python yelp-tools git autoconf-archive) +options=(!emptydirs staticlibs) +#source=("git+https://gitlab.freedesktop.org/dbus/dbus.git?signed#tag=dbus-$pkgver" +source=("git+https://gitlab.freedesktop.org/dbus/dbus.git#tag=dbus-$pkgver" + no-fatal-warnings.diff) +sha256sums=('SKIP' + '6958eeec07557b92a28419eb1702331ee2f0a6fd17285e37dfb6130b9fa4cf6e') +#validpgpkeys=('DA98F25C0871C49A59EAFF2C4DE8FF2A63C7CC90') # Simon McVittie + +prepare() { + cd dbus + + # Allow us to enable checks without them being fatal + patch -Np1 -i ../no-fatal-warnings.diff + + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd dbus + ./configure \ + --prefix=/usr/static \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/static/lib/dbus-1.0 \ + runstatedir=/run \ + --enable-inotify \ + --disable-audit \ + --disable-systemd \ + --enable-user-session \ + --disable-xml-docs \ + --disable-doxygen-docs \ + --disable-ducktype-docs \ + --disable-shared \ + --enable-static \ + --without-x + make +} + +check() { + make -C dbus check +} + +package() { + DESTDIR="$pkgdir" make -C dbus install + rm -r "$pkgdir"/{etc,var,usr/lib,usr/static/bin,usr/static/share/doc} + + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 dbus/COPYING +} + +# vim:set sw=2 et: diff --git a/dbus/static/dbus-reload.hook b/dbus/static/dbus-reload.hook new file mode 100644 index 00000000..9f878290 --- /dev/null +++ b/dbus/static/dbus-reload.hook @@ -0,0 +1,13 @@ +[Trigger] +Type = Path +Operation = Install +Operation = Upgrade +Operation = Remove +Target = etc/dbus-1/system.d/*.conf +Target = usr/share/dbus-1/system.d/*.conf +Target = usr/share/dbus-1/system-services/*.service + +[Action] +Description = Reloading system bus configuration... +When = PostTransaction +Exec = /usr/share/libalpm/scripts/systemd-hook reload dbus diff --git a/dbus/static/no-fatal-warnings.diff b/dbus/static/no-fatal-warnings.diff new file mode 100644 index 00000000..459da904 --- /dev/null +++ b/dbus/static/no-fatal-warnings.diff @@ -0,0 +1,13 @@ +diff --git i/dbus/dbus-internals.c w/dbus/dbus-internals.c +index 267aef97..b1064e85 100644 +--- i/dbus/dbus-internals.c ++++ w/dbus/dbus-internals.c +@@ -185,7 +185,7 @@ const char *_dbus_no_memory_message = "Not enough memory"; + + static dbus_bool_t warn_initted = FALSE; + static dbus_bool_t fatal_warnings = FALSE; +-static dbus_bool_t fatal_warnings_on_check_failed = TRUE; ++static dbus_bool_t fatal_warnings_on_check_failed = FALSE; + + static void + init_warnings(void) diff --git a/expat/static/PKGBUILD b/expat/static/PKGBUILD new file mode 100644 index 00000000..958cf196 --- /dev/null +++ b/expat/static/PKGBUILD @@ -0,0 +1,47 @@ +# Contributor: David Runge +# Contributor: Bartłomiej Piotrowski +# Contributor: Allan McRae +# Contributor: Judd Vinet + +_pkgname=expat +pkgname=$_pkgname-static +pkgver=2.2.10 +pkgrel=1 +pkgdesc='An XML parser library' +arch=('x86_64') +url="https://libexpat.github.io/" +license=('MIT') +depends=('glibc') +makedepends=('cmake') +options=(staticlibs) +source=("https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/expat-${pkgver}.tar.bz2"{,.asc}) +sha512sums=('9623e86024d09e3bb0cf51fd0d56ecaee5fb8c8acb71589104a63b510f73c1e84abb0ccea4e2c196bdf1d30b5ad0633a915758f75813717d031d633e34f022b7' + 'SKIP') +b2sums=('e837353deb2fa6a9fbeff9c1843e63f33a1622bf26f6a914a1e2e572324d4826165bf175ac13038666c8e4eb785167bd3dafe7bc5b4c98e92e608f20709f053d' + 'SKIP') +validpgpkeys=(3176EF7DB2367F1FCA4F306B1F9B0E909AF37285) # Sebastian Pipping + +build() { + cd "$_pkgname-$pkgver" + cmake -DCMAKE_INSTALL_PREFIX=/usr/static \ + -DCMAKE_BUILD_TYPE='None' \ + -DEXPAT_SHARED_LIBS=OFF \ + -DEXPAT_BUILD_TOOLS=OFF \ + -DEXPAT_BUILD_EXAMPLES=OFF \ + -W no-dev \ + -B build \ + -S . + make VERBOSE=1 -C build +} + +check() { + cd "$_pkgname-$pkgver" + make VERBOSE=1 -C build test +} + +package() { + cd "$_pkgname-$pkgver" + make VERBOSE=1 DESTDIR="$pkgdir" -C build install + rm -r "$pkgdir"/usr/static/share + install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname/" +} diff --git a/fontconfig/static/PKGBUILD b/fontconfig/static/PKGBUILD new file mode 100644 index 00000000..96c3492a --- /dev/null +++ b/fontconfig/static/PKGBUILD @@ -0,0 +1,64 @@ +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Jan de Groot + +_pkgname=fontconfig +pkgname=$_pkgname-static +pkgver=2.13.91+48+gfcb0420 +pkgrel=2 +epoch=2 +pkgdesc="Library for configuring and customizing font access" +url="https://www.freedesktop.org/wiki/Software/fontconfig/" +arch=(x86_64) +license=(custom) +depends=(expat-static freetype2-static) +makedepends=(git autoconf-archive gperf python-lxml python-six docbook-utils) +checkdepends=(unzip) +_commit=fcb042028126d79ea5a5fa015b2b034b98656e73 # master +options=(!emptydirs !docs staticlibs) +source=("git+https://gitlab.freedesktop.org/fontconfig/fontconfig.git#commit=$_commit") +sha256sums=('SKIP') + +# a nice page to test font matching: +# http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html +# http://getemoji.com/ + +pkgver() { + cd fontconfig + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd fontconfig + NOCONFIGURE=1 ./autogen.sh +} + +build() { + cd fontconfig + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + export PATH=$PWD:$PATH + printf '#!/usr/bin/bash\nexec /usr/bin/pkg-config --static "$@"\n' > pkg-config + chmod +x pkg-config + ./configure --prefix=/usr/static \ + --sysconfdir=/etc \ + --with-templatedir=/etc/fonts/conf.avail \ + --localstatedir=/var \ + --disable-shared \ + --enable-static \ + --disable-docs + make +} + +check() { + cd fontconfig + make -k check +} + +package() { + cd fontconfig + make DESTDIR="$pkgdir" install + + rm -r "$pkgdir/usr/static/bin" "$pkgdir/etc" "$pkgdir/var" + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING +} + +# vim:set sw=2 et: diff --git a/freetype2-bootstrap/static b/freetype2-bootstrap/static new file mode 120000 index 00000000..9e480184 --- /dev/null +++ b/freetype2-bootstrap/static @@ -0,0 +1 @@ +../freetype2/static-bootstrap \ No newline at end of file diff --git a/freetype2/static-bootstrap/0001-Enable-table-validation-modules.patch b/freetype2/static-bootstrap/0001-Enable-table-validation-modules.patch new file mode 100644 index 00000000..4c469faf --- /dev/null +++ b/freetype2/static-bootstrap/0001-Enable-table-validation-modules.patch @@ -0,0 +1,42 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Tue, 23 Jun 2015 08:40:29 +0200 +Subject: [PATCH] Enable table validation modules + +--- + modules.cfg | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/modules.cfg b/modules.cfg +index d6cdbe523..181f91541 100644 +--- a/modules.cfg ++++ b/modules.cfg +@@ -111,26 +111,26 @@ AUX_MODULES += cache + + # TrueType GX/AAT table validation. Needs `ftgxval.c' below. + # +-# AUX_MODULES += gxvalid ++AUX_MODULES += gxvalid + + # Support for streams compressed with gzip (files with suffix .gz). + # + # See include/freetype/ftgzip.h for the API. + AUX_MODULES += gzip + + # Support for streams compressed with LZW (files with suffix .Z). + # + # See include/freetype/ftlzw.h for the API. + AUX_MODULES += lzw + + # Support for streams compressed with bzip2 (files with suffix .bz2). + # + # See include/freetype/ftbzip2.h for the API. + AUX_MODULES += bzip2 + + # OpenType table validation. Needs `ftotval.c' below. + # +-# AUX_MODULES += otvalid ++AUX_MODULES += otvalid + + # Auxiliary PostScript driver component to share common code. + # diff --git a/freetype2/static-bootstrap/0002-Enable-subpixel-rendering.patch b/freetype2/static-bootstrap/0002-Enable-subpixel-rendering.patch new file mode 100644 index 00000000..26360b5c --- /dev/null +++ b/freetype2/static-bootstrap/0002-Enable-subpixel-rendering.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Tue, 23 Jun 2015 08:43:07 +0200 +Subject: [PATCH] Enable subpixel rendering + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index 097f19b8a..e5de62e35 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -124,7 +124,7 @@ FT_BEGIN_HEADER + * When this macro is not defined, FreeType offers alternative LCD + * rendering technology that produces excellent output. + */ +-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ ++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING + + + /************************************************************************** diff --git a/freetype2/static-bootstrap/0003-Enable-infinality-subpixel-hinting.patch b/freetype2/static-bootstrap/0003-Enable-infinality-subpixel-hinting.patch new file mode 100644 index 00000000..d2369893 --- /dev/null +++ b/freetype2/static-bootstrap/0003-Enable-infinality-subpixel-hinting.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Mon, 29 Aug 2016 08:43:10 +0200 +Subject: [PATCH] Enable infinality subpixel hinting + +--- + include/freetype/config/ftoption.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index e5de62e35..acb4d6d6a 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -672,8 +672,8 @@ FT_BEGIN_HEADER + * https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx + */ + /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ +-#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 +-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */ ++/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ ++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) + + + /************************************************************************** diff --git a/freetype2/static-bootstrap/0004-Enable-long-PCF-family-names.patch b/freetype2/static-bootstrap/0004-Enable-long-PCF-family-names.patch new file mode 100644 index 00000000..45fb72c4 --- /dev/null +++ b/freetype2/static-bootstrap/0004-Enable-long-PCF-family-names.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Sun, 14 May 2017 18:09:31 +0200 +Subject: [PATCH] Enable long PCF family names + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index acb4d6d6a..efa13b9c6 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -861,7 +861,7 @@ FT_BEGIN_HEADER + * If this option is activated, it can be controlled with the + * `no-long-family-names` property of the 'pcf' driver module. + */ +-/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */ ++#define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES + + + /*************************************************************************/ diff --git a/freetype2/static-bootstrap/PKGBUILD b/freetype2/static-bootstrap/PKGBUILD new file mode 100644 index 00000000..bf961b95 --- /dev/null +++ b/freetype2/static-bootstrap/PKGBUILD @@ -0,0 +1,56 @@ +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Jan de Groot + +_pkgname=freetype2 +pkgname=$_pkgname-bootstrap-static +pkgver=2.10.4 +pkgrel=1 +pkgdesc="Font rasterization library" +url="https://www.freetype.org/" +arch=(x86_64) +license=(GPL) +depends=(zlib bzip2-static libpng-static) +makedepends=(libx11-static) +provides=($_pkgname-static) +conflicts=($_pkgname-static) +options=(staticlibs) +source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.xz{,.sig} + 0001-Enable-table-validation-modules.patch + 0002-Enable-subpixel-rendering.patch + 0003-Enable-infinality-subpixel-hinting.patch + 0004-Enable-long-PCF-family-names.patch) +sha256sums=('86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784' + 'SKIP' + 'f41df4f336d5e82e58733c7a4594476c9216cfc85c096327745a7e1b559e17e1' + 'dc77c1cfee4bf8e7e0690628c95d211df09e0d0750e4c8f075b78b5f105514f7' + '21a62bc12b848320c686d602d8d4e3bcd51294a9def4dc9c301736e077b59f3f' + '266384222f87a02fb02b2179828f6c26fe6d7b1fd09d1f7e3734e7fcb09cda2e') +validpgpkeys=(58E0C111E39F5408C5D3EC76C1A60EACE707FDA5) # Werner Lemberg + +prepare() { + cd freetype-$pkgver + patch -Np1 -i ../0001-Enable-table-validation-modules.patch + patch -Np1 -i ../0002-Enable-subpixel-rendering.patch + patch -Np1 -i ../0003-Enable-infinality-subpixel-hinting.patch + patch -Np1 -i ../0004-Enable-long-PCF-family-names.patch +} + +build() { + cd freetype-$pkgver + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd freetype-$pkgver + make -k check +} + +package() { + cd freetype-$pkgver + make DESTDIR="$pkgdir" install + rm -rf "${pkgdir}"/usr/static/share/ +} + +# vim:set ts=2 sw=2 et: diff --git a/freetype2/static/0001-Enable-table-validation-modules.patch b/freetype2/static/0001-Enable-table-validation-modules.patch new file mode 100644 index 00000000..4c469faf --- /dev/null +++ b/freetype2/static/0001-Enable-table-validation-modules.patch @@ -0,0 +1,42 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Tue, 23 Jun 2015 08:40:29 +0200 +Subject: [PATCH] Enable table validation modules + +--- + modules.cfg | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/modules.cfg b/modules.cfg +index d6cdbe523..181f91541 100644 +--- a/modules.cfg ++++ b/modules.cfg +@@ -111,26 +111,26 @@ AUX_MODULES += cache + + # TrueType GX/AAT table validation. Needs `ftgxval.c' below. + # +-# AUX_MODULES += gxvalid ++AUX_MODULES += gxvalid + + # Support for streams compressed with gzip (files with suffix .gz). + # + # See include/freetype/ftgzip.h for the API. + AUX_MODULES += gzip + + # Support for streams compressed with LZW (files with suffix .Z). + # + # See include/freetype/ftlzw.h for the API. + AUX_MODULES += lzw + + # Support for streams compressed with bzip2 (files with suffix .bz2). + # + # See include/freetype/ftbzip2.h for the API. + AUX_MODULES += bzip2 + + # OpenType table validation. Needs `ftotval.c' below. + # +-# AUX_MODULES += otvalid ++AUX_MODULES += otvalid + + # Auxiliary PostScript driver component to share common code. + # diff --git a/freetype2/static/0002-Enable-subpixel-rendering.patch b/freetype2/static/0002-Enable-subpixel-rendering.patch new file mode 100644 index 00000000..26360b5c --- /dev/null +++ b/freetype2/static/0002-Enable-subpixel-rendering.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Tue, 23 Jun 2015 08:43:07 +0200 +Subject: [PATCH] Enable subpixel rendering + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index 097f19b8a..e5de62e35 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -124,7 +124,7 @@ FT_BEGIN_HEADER + * When this macro is not defined, FreeType offers alternative LCD + * rendering technology that produces excellent output. + */ +-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ ++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING + + + /************************************************************************** diff --git a/freetype2/static/0003-Enable-infinality-subpixel-hinting.patch b/freetype2/static/0003-Enable-infinality-subpixel-hinting.patch new file mode 100644 index 00000000..d2369893 --- /dev/null +++ b/freetype2/static/0003-Enable-infinality-subpixel-hinting.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Mon, 29 Aug 2016 08:43:10 +0200 +Subject: [PATCH] Enable infinality subpixel hinting + +--- + include/freetype/config/ftoption.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index e5de62e35..acb4d6d6a 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -672,8 +672,8 @@ FT_BEGIN_HEADER + * https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx + */ + /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ +-#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 +-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */ ++/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ ++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) + + + /************************************************************************** diff --git a/freetype2/static/0004-Enable-long-PCF-family-names.patch b/freetype2/static/0004-Enable-long-PCF-family-names.patch new file mode 100644 index 00000000..45fb72c4 --- /dev/null +++ b/freetype2/static/0004-Enable-long-PCF-family-names.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" +Date: Sun, 14 May 2017 18:09:31 +0200 +Subject: [PATCH] Enable long PCF family names + +--- + include/freetype/config/ftoption.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h +index acb4d6d6a..efa13b9c6 100644 +--- a/include/freetype/config/ftoption.h ++++ b/include/freetype/config/ftoption.h +@@ -861,7 +861,7 @@ FT_BEGIN_HEADER + * If this option is activated, it can be controlled with the + * `no-long-family-names` property of the 'pcf' driver module. + */ +-/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */ ++#define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES + + + /*************************************************************************/ diff --git a/freetype2/static/PKGBUILD b/freetype2/static/PKGBUILD new file mode 100644 index 00000000..96ec6c9c --- /dev/null +++ b/freetype2/static/PKGBUILD @@ -0,0 +1,56 @@ +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Jan de Groot + +_pkgname=freetype2 +pkgname=$_pkgname-static +pkgver=2.10.4 +pkgrel=1 +pkgdesc="Font rasterization library" +url="https://www.freetype.org/" +arch=(x86_64) +license=(GPL) +# adding harfbuzz for improved OpenType features auto-hinting +# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream +depends=(zlib bzip2-static libpng-static harfbuzz-static) +makedepends=(libx11-static) +options=(staticlibs) +source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.xz{,.sig} + 0001-Enable-table-validation-modules.patch + 0002-Enable-subpixel-rendering.patch + 0003-Enable-infinality-subpixel-hinting.patch + 0004-Enable-long-PCF-family-names.patch) +sha256sums=('86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784' + 'SKIP' + 'f41df4f336d5e82e58733c7a4594476c9216cfc85c096327745a7e1b559e17e1' + 'dc77c1cfee4bf8e7e0690628c95d211df09e0d0750e4c8f075b78b5f105514f7' + '21a62bc12b848320c686d602d8d4e3bcd51294a9def4dc9c301736e077b59f3f' + '266384222f87a02fb02b2179828f6c26fe6d7b1fd09d1f7e3734e7fcb09cda2e') +validpgpkeys=(58E0C111E39F5408C5D3EC76C1A60EACE707FDA5) # Werner Lemberg + +prepare() { + cd freetype-$pkgver + patch -Np1 -i ../0001-Enable-table-validation-modules.patch + patch -Np1 -i ../0002-Enable-subpixel-rendering.patch + patch -Np1 -i ../0003-Enable-infinality-subpixel-hinting.patch + patch -Np1 -i ../0004-Enable-long-PCF-family-names.patch +} + +build() { + cd freetype-$pkgver + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd freetype-$pkgver + make -k check +} + +package() { + cd freetype-$pkgver + make DESTDIR="$pkgdir" install + rm -rf "${pkgdir}"/usr/static/share/ +} + +# vim:set ts=2 sw=2 et: diff --git a/glib2/static/PKGBUILD b/glib2/static/PKGBUILD new file mode 100644 index 00000000..b9d89c67 --- /dev/null +++ b/glib2/static/PKGBUILD @@ -0,0 +1,69 @@ +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Jan de Groot + +_pkgname=glib2 +pkgname=$_pkgname-static +pkgver=2.66.4 +pkgrel=2 +pkgdesc="Low level core library" +url="https://wiki.gnome.org/Projects/GLib" +license=(LGPL) +arch=(x86_64) +depends=(pcre-static libffi-static util-linux-static zlib) # regular zlib contains static lib +makedepends=(gettext shared-mime-info python libelf git util-linux + meson dbus sysprof pcre libffi) # shared libs required at build time for some plugins +checkdepends=(desktop-file-utils) +options=(!strip !emptydirs staticlibs) +_commit=bacbec652d356895ec493f3de2f2f6f4c7dafde0 # tags/2.66.4^0 +source=("git+https://gitlab.gnome.org/GNOME/glib.git#commit=$_commit" + noisy-glib-compile-schemas.diff) +sha256sums=('SKIP' + '81a4df0b638730cffb7fa263c04841f7ca6b9c9578ee5045db6f30ff0c3fc531') + +pkgver() { + cd glib + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd glib + + # Suppress noise from glib-compile-schemas.hook + git apply -3 ../noisy-glib-compile-schemas.diff +} + +build() { + CFLAGS+=" -DG_DISABLE_CAST_CHECKS" + arch-meson glib build \ + -D selinux=disabled \ + -D sysprof=enabled \ + -D man=false \ + -D gtk_doc=false \ + -Dinternal_pcre=false \ + --prefix /usr/static \ + --default-library static + meson compile -C build +} + +check() { + meson test -C build --no-suite flaky --print-errorlogs +} + +package() { + DESTDIR="$pkgdir" meson install -C build + + # Strip messes up the LTO-enabled archive's index so strip libs manually and then run ranlib again + find "$pkgdir" -name '*.a' -exec strip $STRIP_STATIC {} \; + find "$pkgdir" -name '*.a' -exec ranlib {} \; + + # Avoid a dep on sysprof + sed -i 's/, sysprof-capture-4//' "$pkgdir"/usr/static/lib/pkgconfig/*.pc + + export PYTHONHASHSEED=0 + python -m compileall -d /usr/static/share/glib-2.0/codegen \ + "$pkgdir/usr/static/share/glib-2.0/codegen" + python -O -m compileall -d /usr/static/share/glib-2.0/codegen \ + "$pkgdir/usr/static/share/glib-2.0/codegen" +} + +# vim:set sw=2 et: diff --git a/glib2/static/noisy-glib-compile-schemas.diff b/glib2/static/noisy-glib-compile-schemas.diff new file mode 100644 index 00000000..f5f2d948 --- /dev/null +++ b/glib2/static/noisy-glib-compile-schemas.diff @@ -0,0 +1,24 @@ +diff --git i/gio/glib-compile-schemas.c w/gio/glib-compile-schemas.c +index b8de0907248f6860..130f89b1728f7932 100644 +--- i/gio/glib-compile-schemas.c ++++ w/gio/glib-compile-schemas.c +@@ -1219,19 +1219,6 @@ parse_state_start_schema (ParseState *state, + return; + } + +- if (path && (g_str_has_prefix (path, "/apps/") || +- g_str_has_prefix (path, "/desktop/") || +- g_str_has_prefix (path, "/system/"))) +- { +- gchar *message = NULL; +- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. " +- "Paths starting with " +- "“/apps/”, “/desktop/” or “/system/” are deprecated."), +- id, path); +- g_printerr ("%s\n", message); +- g_free (message); +- } +- + state->schema_state = schema_state_new (path, gettext_domain, + extends, extends_name, list_of); + diff --git a/graphite/static/PKGBUILD b/graphite/static/PKGBUILD new file mode 100644 index 00000000..a7e108be --- /dev/null +++ b/graphite/static/PKGBUILD @@ -0,0 +1,49 @@ +# Contributor: AndyRTR + +_pkgname=graphite +pkgname=$_pkgname-static +pkgver=1.3.14 +pkgrel=1 +epoch=1 +arch=('x86_64') +url="https://github.com/silnrsi/graphite" +pkgdesc='reimplementation of the SIL Graphite text processing engine' +license=('LGPL' 'GPL' 'custom') +depends=('gcc-libs') +makedepends=('cmake' 'freetype2-static' 'python') +options=(!emptydirs !docs staticlibs) +# https://github.com/silnrsi/graphite/releases/download/1.3.14/graphite2-1.3.14.sha256sum +source=(https://github.com/silnrsi/graphite/releases/download/${pkgver}/graphite2-${pkgver}.tgz) +sha256sums=('f99d1c13aa5fa296898a181dff9b82fb25f6cc0933dbaa7a475d8109bd54209d') + +build() { + mkdir build + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + cd graphite2-${pkgver} + echo '' > doc/CMakeLists.txt + echo '' > tests/CMakeLists.txt # TODO: fix linking tests + cd ../build + export PATH=$PWD:$PATH + printf '#!/usr/bin/bash\nexec /usr/bin/pkg-config --static "$@"\n' > pkg-config + chmod +x pkg-config + cmake -G "Unix Makefiles" ../graphite2-${pkgver} \ + -DCMAKE_C_FLAGS:STRING="${CFLAGS}" \ + -DCMAKE_INSTALL_PREFIX=/usr/static \ + -DCMAKE_BUILD_TYPE:STRING=Release \ + -DGRAPHITE2_COMPARE_RENDERER=OFF \ + -DBUILD_SHARED_LIBS=OFF \ + + # fix unwanted -O3 cflag (taken form Debian) + find . -type f ! -name "rules" ! -name "changelog" -exec sed -i -e 's/\-O3//g' {} \; + + make +} + +package() { + cd "${srcdir}"/build + make DESTDIR="$pkgdir/" install + + # licenses + mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname} + install -m644 "${srcdir}"/graphite2-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/ +} diff --git a/harfbuzz/static/PKGBUILD b/harfbuzz/static/PKGBUILD new file mode 100644 index 00000000..5cb0b746 --- /dev/null +++ b/harfbuzz/static/PKGBUILD @@ -0,0 +1,60 @@ +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Jan de Groot + +_pkgname=harfbuzz +pkgname=$_pkgname-static +pkgver=2.7.4 +pkgrel=1 +pkgdesc="OpenType text shaping engine" +url="https://www.freedesktop.org/wiki/Software/HarfBuzz" +arch=(x86_64) +license=(MIT) +depends=(glib2-static freetype2-static graphite-static) +makedepends=(gobject-introspection ragel git python meson) +checkdepends=(python-fonttools python-setuptools) +options=(!emptydirs !docs staticlibs) +_commit=7236c7e29cef1c2d76c7a284c5081ff4d3aa1127 # tags/2.7.4^0 +source=("git+https://github.com/harfbuzz/harfbuzz#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd harfbuzz + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd harfbuzz +} + +build() { + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + export PATH=$PWD:$PATH + printf '#!/usr/bin/bash\nexec /usr/bin/pkg-config --static "$@"\n' > pkg-config + chmod +x pkg-config + # disable tools (and related tests) + echo '' > harfbuzz/util/meson.build + echo '' > harfbuzz/test/shaping/meson.build + echo '' > harfbuzz/test/subset/meson.build + arch-meson harfbuzz build \ + -Dgraphite=enabled \ + -Dcairo=disabled \ + -Dintrospection=disabled \ + -Dfontconfig=disabled \ + -Dicu=disabled \ + -Ddocs=disabled \ + --prefix /usr/static \ + --default-library static + meson compile -C build +} + +check() { + mkdir -p tmp + TMPDIR="$PWD/tmp" meson test -C build --print-errorlogs + rm -r tmp +} + +package() { + DESTDIR="$pkgdir" meson install -C build + + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 harfbuzz/COPYING +} diff --git a/keyutils/static/PKGBUILD b/keyutils/static/PKGBUILD new file mode 100644 index 00000000..68007d50 --- /dev/null +++ b/keyutils/static/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: Stéphane Gaudreault +# Contributor: Tobias Powalowski + +_pkgname=keyutils +pkgname=$_pkgname-static +_tag='5678a1aae8834b5c16b5ed7dc72ef8836a29e122' # git rev-parse v${pkgver} +pkgver=1.6.3 +pkgrel=1 +pkgdesc='Linux Key Management Utilities' +arch=('x86_64') +url='https://www.kernel.org/' +license=('GPL2' 'LGPL2.1') +depends=('glibc') +makedepends=('git') +options=(!emptydirs staticlibs) +#validpgpkeys=('A86E54B0D5E1B4E0AB7C640FFBB7576BA7CB0B6B') # David Howells +#source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git#tag=${_tag}?signed" +source=("git+https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git#tag=${_tag}" + 'request-key.conf.patch' 'reproducible.patch') +sha256sums=('SKIP' + '203c602c61ed94ccd423a0a453d74143d678c641a9a4486367576ee8af2cb8d6' + '7bb7400b2b8c8f0288c86ec9191f8964a1e682745a204013d5fc7c2e1a253d8e') + +prepare() { + cd "${_pkgname}" + # fix paths of binaries in /etc/request-key.conf + patch -Np0 -i ../request-key.conf.patch + + # make keyutils reproducible + patch -Np1 -i ../reproducible.patch +} + +build() { + cd "${_pkgname}" + make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + PREFIX='/usr/static' SBINDIR='/usr/static/bin' BINDIR='/usr/static/bin' INCLUDEDIR='/usr/static/include' \ + NO_SOLIB=1 +} + +package() { + cd "${_pkgname}" + make DESTDIR="${pkgdir}" \ + PREFIX='/usr/static' SBINDIR='/usr/static/bin' BINDIR='/usr/static/bin' LIBDIR='/usr/static/lib' \ + USRLIBDIR='/usr/static/lib' INCLUDEDIR='/usr/static/include' \ + NO_SOLIB=1 install pkgconfig + install -Dt "$pkgdir/usr/static/lib/pkgconfig" -m644 libkeyutils.pc + rm -r "${pkgdir}"/usr/static/bin + rm -r "${pkgdir}"/usr/share + rm -r "${pkgdir}"/etc +} diff --git a/keyutils/static/reproducible.patch b/keyutils/static/reproducible.patch new file mode 100644 index 00000000..db5cfe82 --- /dev/null +++ b/keyutils/static/reproducible.patch @@ -0,0 +1,24 @@ +Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set +otherwise fall back to the default behaviour. + +Signed-off-by: Jelle van der Waa +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 33a451e..9066d5d 100644 +--- a/Makefile ++++ b/Makefile +@@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver + ############################################################################### + #RPATH = -Wl,-rpath,$(LIBDIR) + +-VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\"" ++VCPPFLAGS := -DPKGBUILD="\"$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\"" + VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\"" + VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\"" + +-- +2.21.0 + diff --git a/keyutils/static/request-key.conf.patch b/keyutils/static/request-key.conf.patch new file mode 100644 index 00000000..9ab47963 --- /dev/null +++ b/keyutils/static/request-key.conf.patch @@ -0,0 +1,21 @@ +--- request-key.conf.old 2013-05-28 15:34:10.966001242 +0200 ++++ request-key.conf 2013-05-28 15:35:34.857969598 +0200 +@@ -31,11 +31,11 @@ + + #OP TYPE DESCRIPTION CALLOUT INFO PROGRAM ARG1 ARG2 ARG3 ... + #====== ======= =============== =============== =============================== +-create dns_resolver * * /sbin/key.dns_resolver %k +-create user debug:* negate /bin/keyctl negate %k 30 %S +-create user debug:* rejected /bin/keyctl reject %k 30 %c %S +-create user debug:* expired /bin/keyctl reject %k 30 %c %S +-create user debug:* revoked /bin/keyctl reject %k 30 %c %S +-create user debug:loop:* * |/bin/cat ++create dns_resolver * * /usr/bin/key.dns_resolver %k ++create user debug:* negate /usr/bin/keyctl negate %k 30 %S ++create user debug:* rejected /usr/bin/keyctl reject %k 30 %c %S ++create user debug:* expired /usr/bin/keyctl reject %k 30 %c %S ++create user debug:* revoked /usr/bin/keyctl reject %k 30 %c %S ++create user debug:loop:* * |/usr/bin/cat + create user debug:* * /usr/share/keyutils/request-key-debug.sh %k %d %c %S +-negate * * * /bin/keyctl negate %k 30 %S ++negate * * * /usr/bin/keyctl negate %k 30 %S diff --git a/libb2/static/PKGBUILD b/libb2/static/PKGBUILD new file mode 100644 index 00000000..4ed89a2a --- /dev/null +++ b/libb2/static/PKGBUILD @@ -0,0 +1,37 @@ +# Contributor: Antonio Rojas +# Contributor: Lex Black +# Contributor: Jesin + +_pkgname=libb2 +pkgname=$_pkgname-static +pkgver=0.98.1 +pkgrel=2 +arch=(x86_64) +pkgdesc='C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp hash functions' +url='https://blake2.net/' +license=(custom:CC0) +depends=(gcc-libs) +options=(staticlibs) +source=("https://github.com/BLAKE2/libb2/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz") +sha256sums=('53626fddce753c454a3fea581cbbc7fe9bbcf0bc70416d48fdbbf5d87ef6c72e') + +# libb2's build system discards the $CFLAGS variable. +# We can get around this by putting those flags in $CC. +export CC="${CC-cc} $CFLAGS" + +build() { + cd "$_pkgname-$pkgver" + ./configure --prefix=/usr/static --disable-shared --enable-static --disable-native --enable-fat + make +} + +check() { + cd $_pkgname-$pkgver + make check +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname +} diff --git a/libffi/static/PKGBUILD b/libffi/static/PKGBUILD new file mode 100644 index 00000000..b9b0cd96 --- /dev/null +++ b/libffi/static/PKGBUILD @@ -0,0 +1,47 @@ +# Contributor: Levente Polyak +# Contributor: Bartłomiej Piotrowski +# Contributor: Stéphane Gaudreault +# Contributor: Jan de Groot + +_pkgname=libffi +pkgname=$_pkgname-static +pkgver=3.3 +pkgrel=4 +pkgdesc='Portable foreign function interface library' +arch=('x86_64') +url='https://sourceware.org/libffi/' +license=('MIT') +depends=('glibc') +checkdepends=('dejagnu') +options=(!emptydirs staticlibs) +source=(https://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz) +sha256sums=('72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056') +b2sums=('cddc40729a30a9bd34d675809f51f8d1b4ccaffa54bc6dd6f7e965f4e260edd34754719f9f6247c8957aeb7cf154d56ce1fe16a54c3f1ad39afbebdf41d23caa') + +prepare() { + cd $_pkgname-$pkgver + autoreconf -fiv +} + +build() { + cd $_pkgname-$pkgver + ./configure \ + --prefix=/usr/static \ + --disable-shared \ + --enable-static \ + --enable-pax_emutramp + make +} + +check() { + make -C $_pkgname-$pkgver check +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/static/share/{man,info} + install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +} + +# vim: ts=2 sw=2 et: diff --git a/libgcrypt/static/PKGBUILD b/libgcrypt/static/PKGBUILD new file mode 100644 index 00000000..ba071e42 --- /dev/null +++ b/libgcrypt/static/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Andreas Radke + +# after a .so bump first rebuild dirmngr +# with sudo testing-x86_64-build -- -I libgcrypt-1.6.0-1-x86_64.pkg.tar.xz +# then cp /usr/lib/libgcrypt.so.11 /var/lib/archbuild/staging-x86_64/root/usr/lib/ and do staging-x86_64-build + +_pkgname=libgcrypt +pkgname=$_pkgname-static +pkgver=1.8.7 +pkgrel=1 +pkgdesc="General purpose cryptographic library based on the code from GnuPG" +arch=(x86_64) +url="https://www.gnupg.org" +license=('LGPL') +depends=('libgpg-error-static') +options=('!emptydirs' staticlibs) +# https://www.gnupg.org/download/integrity_check.html +source=(https://gnupg.org/ftp/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2{,.sig}) +sha1sums=('ea79a279b27bf25cb1564f96693128f8fc9f41d6' + 'SKIP') +validpgpkeys=('6DAA6E64A76D2840571B4902528897B826403ADA') # "Werner Koch (dist signing 2020)" + +prepare() { + cd "${_pkgname}"-${pkgver} + # tests fail due to systemd+libseccomp preventing memory syscalls when building in chroots + # t-secmem: line 176: gcry_control (GCRYCTL_INIT_SECMEM, pool_size, 0) failed: General error + # FAIL: t-secmem + # t-sexp: line 1174: gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0) failed: General error + # FAIL: t-sexp + sed -i "s:t-secmem::" tests/Makefile.am + sed -i "s:t-sexp::" tests/Makefile.am + autoreconf -vfi +} + +build() { + cd "${_pkgname}"-${pkgver} + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static \ + --disable-shared \ + --enable-static \ + --disable-padlock-support + make +} + +check() { + cd "${_pkgname}"-${pkgver} + make check +} + +package() { + cd "${_pkgname}"-${pkgver} + make DESTDIR="${pkgdir}" install + rm -r "$pkgdir"/usr/share/{man,info} +} diff --git a/libglvnd/static/LICENSE b/libglvnd/static/LICENSE new file mode 100644 index 00000000..57bc4f48 --- /dev/null +++ b/libglvnd/static/LICENSE @@ -0,0 +1,26 @@ +Copyright (c) 2013, NVIDIA CORPORATION. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and/or associated documentation files (the +"Materials"), to deal in the Materials without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Materials, and to +permit persons to whom the Materials are furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +unaltered in all copies or substantial portions of the Materials. +Any additions, deletions, or changes to the original source files +must be clearly indicated in accompanying documentation. + +If only executable code is distributed, then the accompanying +documentation must state that "this software is based in part on the +work of the Khronos Group." + +THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. \ No newline at end of file diff --git a/libglvnd/static/PKGBUILD b/libglvnd/static/PKGBUILD new file mode 100644 index 00000000..64950e0d --- /dev/null +++ b/libglvnd/static/PKGBUILD @@ -0,0 +1,35 @@ +# NOT WORKING as it still produces dynamic libraries +# Building this as static library is also not useful, see https://gitlab.freedesktop.org/glvnd/libglvnd/-/issues/212 + +_pkgname=libglvnd +pkgname=$_pkgname-static +pkgver=1.3.2 +pkgrel=1 +pkgdesc="The GL Vendor-Neutral Dispatch library" +arch=('x86_64') +url="https://github.com/NVIDIA/libglvnd" +license=('custom:BSD-like') +depends=('libxext-static' 'mesa' 'opengl-driver') +makedepends=('libx11' 'xorgproto' 'python' 'meson') +options=(staticlibs) +source=("$_pkgname-$pkgver.tar.gz::https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v${pkgver}/libglvnd-v${pkgver}.tar.gz" + LICENSE) +sha512sums=('01db155f02fa21f4217ee5ca6dd8eeed3d20672c8aaa43475bd112921716ee8d4124e01f80a89587ddc8ebfa4a552c5e02d70726222702cce1601a6e6f4bc22b' + 'bf0f4a7e04220a407400f89226ecc1f798cc43035f2538cc8860e5088e1f84140baf0d4b0b28f66e4b802d4d6925769a1297c24e1ba39c1c093902b2931781a5') + +build() { + export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/static/lib/pkgconfig + arch-meson $_pkgname-v$pkgver build \ + -D gles1=false \ + --prefix /usr/static \ + --default-library static + + ninja -C build +} + +package() { + # libglvnd needs mesa for indirect rendering + DESTDIR="$pkgdir" ninja -C build install + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/libgpg-error/static/PKGBUILD b/libgpg-error/static/PKGBUILD new file mode 100644 index 00000000..b7010d1c --- /dev/null +++ b/libgpg-error/static/PKGBUILD @@ -0,0 +1,42 @@ +# Contributor: Andreas Radke +# Contributor: judd + +_pkgname=libgpg-error +pkgname=$_pkgname-static +pkgver=1.41 +pkgrel=1 +pkgdesc="Support library for libgcrypt" +arch=(x86_64) +url="https://www.gnupg.org" +license=('LGPL') +depends=('glibc') +options=(staticlibs) +source=(https://www.gnupg.org/ftp/gcrypt/libgpg-error/${_pkgname}-${pkgver}.tar.bz2{,.sig}) +# https://www.gnupg.org/download/integrity_check.html +sha1sums=('66d6270511a48bac0bf347330e7a12c62f3a1ab4' + 'SKIP') +validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6' # Werner Koch + '031EC2536E580D8EA286A9F22071B08A33BD3F06' # NIIBE Yutaka (GnuPG Release Key) + '6DAA6E64A76D2840571B4902528897B826403ADA') # "Werner Koch (dist signing 2020)" + +prepare() { + cd ${_pkgname}-${pkgver} + autoreconf -vfi +} + +build() { + cd ${_pkgname}-${pkgver} + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd ${_pkgname}-${pkgver} + make check +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}/" install + rm -r "$pkgdir"/usr/static/share/{man,info} +} diff --git a/libice/static/PKGBUILD b/libice/static/PKGBUILD new file mode 100644 index 00000000..ef3bd3a4 --- /dev/null +++ b/libice/static/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: AndyRTR +# Maintainer: Jan de Groot +# Contributor: Alexander Baldeck + +_pkgname=libice +pkgname=$_pkgname-static +pkgver=1.0.10 +pkgrel=3 +pkgdesc="X11 Inter-Client Exchange library" +arch=('x86_64') +url="https://xorg.freedesktop.org/" +depends=('glibc') +makedepends=('xtrans>=1.2.5' 'xorg-util-macros' 'xorgproto') +options=(!emptydirs staticlibs) +source=(${url}/releases/individual/lib/libICE-${pkgver}.tar.bz2{,.sig}) +license=('custom') +sha512sums=('2f1ef2c32c833c71894a08fa7e7ed53f301f6c7bd22485d71c12884d8e8b36b99f362ec886349dcc84d08edc81c8b2cea035320831d64974edeba021b433c468' + 'SKIP') +validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # "Alan Coopersmith " + +build() { + cd libICE-${pkgver} + ./configure --prefix=/usr/static --disable-shared --enable-static --sysconfdir=/etc + make +} + +package() { + cd libICE-${pkgver} + make DESTDIR="${pkgdir}" install + rm -r "$pkgdir"/usr/static/share/doc + + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} diff --git a/libpng/static/PKGBUILD b/libpng/static/PKGBUILD new file mode 100644 index 00000000..047a8089 --- /dev/null +++ b/libpng/static/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor: Jan de Groot +# Contributor: dorphell +# Contributor: Travis Willard +# Contributor: Douglas Soares de Andrade + +_pkgname=libpng +pkgname=$_pkgname-static +pkgver=1.6.37 +pkgrel=3 +pkgdesc="A collection of routines used to create PNG format graphics files" +arch=('x86_64') +url="http://www.libpng.org/pub/png/libpng.html" +license=('custom') +depends=('zlib' 'sh') +options=(!emptydirs staticlibs) +validpgpkeys=('8048643BA2C840F4F92A195FF54984BFA16C640F') # Glenn Randers-Pehrson (mozilla) +source=("https://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.xz") +sha256sums=('505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca') + +build() { + cd $_pkgname-$pkgver + + ./configure \ + --prefix=/usr/static \ + --disable-shared \ + --enable-static + make +} + +check() { + cd $_pkgname-$pkgver + + make check +} + +package() { + cd $_pkgname-$pkgver + + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/static/share/man + + install -D -m0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/libsm/static/PKGBUILD b/libsm/static/PKGBUILD new file mode 100644 index 00000000..837c8695 --- /dev/null +++ b/libsm/static/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Jan de Groot + +_pkgname=libsm +pkgname=$_pkgname-static +pkgver=1.2.3 +pkgrel=2 +pkgdesc="X11 Session Management library" +arch=('x86_64') +license=('custom') +url="https://xorg.freedesktop.org/" +depends=('libice-static' 'util-linux-static') +makedepends=('xorg-util-macros' 'xtrans' 'xorgproto') +options=(!emptydirs staticlibs) +source=(${url}/releases/individual/lib/libSM-${pkgver}.tar.bz2) +sha512sums=('74c42e27029db78475e62025b4711dbac5e22d2f8e8a24be98a1c31b03c0fc4afe859928f851800ea0b76854f12147900dc4f27bbfd3d8ea45daaaf24b70a903') + +build() { + cd libSM-${pkgver} + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static --disable-shared --enable-static --sysconfdir=/etc + make +} + +package() { + cd libSM-${pkgver} + make DESTDIR="${pkgdir}" install + rm -r "${pkgdir}/usr/static/share/doc" + + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} diff --git a/libx11/static/PKGBUILD b/libx11/static/PKGBUILD new file mode 100644 index 00000000..c5d7f087 --- /dev/null +++ b/libx11/static/PKGBUILD @@ -0,0 +1,45 @@ +# Contributor: Andreas Radke +# Contributor: Jan de Groot + +_pkgname=libx11 +pkgname=$_pkgname-static +pkgver=1.7.0 +pkgrel=3 +pkgdesc="X11 client-side library" +arch=(x86_64) +url="https://xorg.freedesktop.org/" +# keep xorgproto runtime dependency +# https://lists.archlinux.org/pipermail/arch-dev-public/2019-December/029767.html +depends=('libxcb-static' 'xorgproto') +makedepends=('xorg-util-macros' 'libx11' 'xtrans') +license=('custom') +options=(!emptydirs staticlibs) +source=(${url}/releases/individual/lib/libX11-${pkgver}.tar.bz2{,.sig}) +sha512sums=('f661ca90350fd8a94f054b00f12f5122cea068ebff706acfd399462236c189a296a2358d17d16166635101cf56cc19303dd407873a159932d093c9f33556f9fb' + 'SKIP') +validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith +validpgpkeys+=('C41C985FDCF1E5364576638B687393EE37D128F8') # Matthieu Herrb +validpgpkeys+=('3BB639E56F861FA2E86505690FDD682D974CA72A') # Matt Turner +validpgpkeys+=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2') # Adam Jackson +validpgpkeys=('C383B778255613DFDB409D91DB221A6900000011') # "Keith Packard " + +build() { + cd libX11-${pkgver} + #export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static --disable-shared --enable-static --disable-xf86bigfont + make +} + +check() { + cd libX11-${pkgver} + make check +} + +package() { + cd "${srcdir}/libX11-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -r "$pkgdir"/usr/static/share/{man,doc} + + install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" +} diff --git a/libxau/static/PKGBUILD b/libxau/static/PKGBUILD new file mode 100644 index 00000000..696f8cf0 --- /dev/null +++ b/libxau/static/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: AndyRTR +# Contributor: Jan de Groot +# Contributor: Alexander Baldeck + +_pkgname=libxau +pkgname=$_pkgname-static +pkgver=1.0.9 +pkgrel=3 +pkgdesc="X11 authorisation library" +arch=('x86_64') +url="https://xorg.freedesktop.org/" +depends=('glibc') +makedepends=('xorgproto') +license=('custom') +options=(!emptydirs staticlibs) +source=(${url}/releases/individual/lib/libXau-${pkgver}.tar.bz2{,.sig}) +validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # "Alan Coopersmith " +sha512sums=('3ca454ba466a807ea28b0f715066d73dc76ad312697b121d43e4d5766215052e9b7ffb8fe3ed3e496fa3f2a13f164ac692ff85cc428e26731b679f0f06a1d562' + 'SKIP') + +build() { + cd libXau-${pkgver} + ./configure --prefix=/usr/static --disable-shared --enable-static --sysconfdir=/etc + make +} + +package() { + cd libXau-${pkgver} + make DESTDIR="${pkgdir}" install + rm -r "$pkgdir"/usr/static/share/man + + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} diff --git a/libxcb/static/PKGBUILD b/libxcb/static/PKGBUILD new file mode 100644 index 00000000..00a80038 --- /dev/null +++ b/libxcb/static/PKGBUILD @@ -0,0 +1,44 @@ +# Contributor: Andreas Radke +# Contributor: Jan de Groot +# Contributor: Alexander Baldeck + +_pkgname=libxcb +pkgname=$_pkgname-static +pkgver=1.14 +pkgrel=1 +pkgdesc="X11 client-side library" +arch=('x86_64') +url="https://xcb.freedesktop.org/" +depends=('xcb-proto' 'libxdmcp' 'libxau-static') +makedepends=('libxslt' 'python' 'xorg-util-macros' 'xorgproto') +license=('custom') +options=(!emptydirs staticlibs) +source=(https://xorg.freedesktop.org/archive/individual/lib/$_pkgname-$pkgver.tar.xz{,.sig}) +sha512sums=('b90a23204b0d2c29d8b115577edb01df0465e02d6a8876550fecd62375d24a5d5f872ddd5946772ddba077cadce75b12c7a6d218469dc30b5b92bc82188e8bc6' + 'SKIP') +validpgpkeys=('A66D805F7C9329B4C5D82767CCC4F07FAC641EFF') # "Daniel Stone " +validpgpkeys+=('3BB639E56F861FA2E86505690FDD682D974CA72A') # "Matt Turner " + +build() { + cd "$_pkgname-$pkgver" + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static \ + --enable-xinput \ + --enable-xkb \ + --disable-shared \ + --enable-static + make +} + +check() { + cd $_pkgname-$pkgver + make -k check +} + +package() { + cd "$_pkgname-$pkgver" + make DESTDIR="$pkgdir" install + rm -r "${pkgdir}"/usr/static/share/{doc,man} + install -m755 -d "$pkgdir/usr/share/licenses/$pkgname" + install -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname" +} diff --git a/libxdmcp/static/PKGBUILD b/libxdmcp/static/PKGBUILD new file mode 100644 index 00000000..df6f33bd --- /dev/null +++ b/libxdmcp/static/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Andreas Radke +# Maintainer: Jan de Groot + +_pkgname=libxdmcp +pkgname=$_pkgname-static +pkgver=1.1.3 +pkgrel=3 +pkgdesc="X11 Display Manager Control Protocol library" +arch=('x86_64') +url="https://xorg.freedesktop.org/" +license=('custom') +depends=('glibc') +makedepends=('xorg-util-macros' 'xorgproto') +options=(!emptydirs staticlibs) +source=(${url}/releases/individual/lib/libXdmcp-${pkgver}.tar.bz2{,.sig}) +sha512sums=('cb1d4650f97d66e73acd2465ec7d757b9b797cce2f85e301860a44997a461837eea845ec9bd5b639ec5ca34c804f8bdd870697a5ce3f4e270b687c9ef74f25ec' + 'SKIP') +validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith + +build() { + cd libXdmcp-${pkgver} + ./configure --prefix=/usr/static --disable-shared --enable-static --sysconfdir=/etc + make +} + +package() { + cd libXdmcp-${pkgver} + make DESTDIR="${pkgdir}" install + rm -r "$pkgdir"/usr/static/share/doc + + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" +} diff --git a/libxext/static/PKGBUILD b/libxext/static/PKGBUILD new file mode 100644 index 00000000..5b70ff16 --- /dev/null +++ b/libxext/static/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Andreas Radke +# Contributor: Jan de Groot + +_pkgname=libxext +pkgname=$_pkgname-static +pkgver=1.3.4 +pkgrel=3 +pkgdesc="X11 miscellaneous extensions library" +arch=('x86_64') +url="https://xorg.freedesktop.org/" +license=('custom') +depends=('libx11-static') +makedepends=('xorg-util-macros' 'xorgproto') +options=(!emptydirs staticlibs) +source=(${url}/releases/individual/lib/libXext-${pkgver}.tar.bz2{,.sig}) +sha512sums=('09146397d95f80c04701be1cc0a9c580ab5a085842ac31d17dfb6d4c2e42b4253b89cba695e54444e520be359883a76ffd02f42484c9e2ba2c33a5a40c29df4a' + 'SKIP') +validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # "Peter Hutterer (Who-T) " +validpgpkeys+=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith + +build() { + cd libXext-${pkgver} + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static --sysconfdir=/etc --disable-shared --enable-static + make +} + +package() { + cd libXext-${pkgver} + make DESTDIR="${pkgdir}" install + rm -r "$pkgdir"/usr/static/share/{doc,man} + + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" +} diff --git a/libxkbcommon/static/PKGBUILD b/libxkbcommon/static/PKGBUILD new file mode 100644 index 00000000..380d46d2 --- /dev/null +++ b/libxkbcommon/static/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: Jan Alexander Steffens (heftig) +# Contributor: Daniel Micay +# Contributor: Mladen Pejakovic + +_pkgname=libxkbcommon +pkgname=$_pkgname-static +pkgver=1.0.3 +pkgrel=1 +pkgdesc="Keymap handling library for toolkits and window systems" +url="https://xkbcommon.org/" +arch=(x86_64) +license=(custom) +depends=(libxcb-static xkeyboard-config libxml2-static wayland-static libxml2-static) +makedepends=(xkeyboard-config libxml2 libxcb wayland wayland-protocols doxygen + git meson) +checkdepends=(xorg-server-xvfb libgl) +options=(!emptydirs !docs staticlibs) +_commit=c60b77ea512bef92e481be38972b58dd71a34180 # tags/xkbcommon-1.0.3^0 +source=("git+https://github.com/xkbcommon/libxkbcommon#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname + git describe --tags | sed 's/^xkbcommon-//;s/-/+/g' +} + +prepare() { + cd $_pkgname +} + +build() { + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + export PATH=$PWD:$PATH + printf '#!/usr/bin/bash\nexec /usr/bin/pkg-config --static "$@"\n' > pkg-config + chmod +x pkg-config + arch-meson $_pkgname build \ + --prefix /usr/static \ + --default-library static \ + -Denable-docs=false + meson compile -C build +} + +check() { + xvfb-run -s '-nolisten local' meson test -C build --print-errorlogs +} + +package() { + DESTDIR="$pkgdir" meson install -C build + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $_pkgname/LICENSE +} diff --git a/libxml2/static/PKGBUILD b/libxml2/static/PKGBUILD new file mode 100644 index 00000000..b56310aa --- /dev/null +++ b/libxml2/static/PKGBUILD @@ -0,0 +1,89 @@ +# Contributor: Levente Polyak +# Contributor: Jan de Groot +# Contributor: Tom Gundersen +# Contributor: John Proctor + +_pkgname=libxml2 +pkgname=$_pkgname-static +pkgver=2.9.10 +pkgrel=8 +pkgdesc='XML parsing library, version 2' +url='http://www.xmlsoft.org/' +arch=(x86_64) +license=(MIT) +depends=(zlib xz-static) +makedepends=(git) +options=(!emptydirs staticlibs) +_commit=41a34e1f4ffae2ce401600dbb5fe43f8fe402641 # tags/v2.9.10^0 +source=("git+https://gitlab.gnome.org/GNOME/libxml2.git#commit=$_commit" + libxml2-2.9.8-python3-unicode-errors.patch + fix-relaxed-approach-to-nested-documents.patch + libxml2-2.9.10-CVE-2019-20388.patch + libxml2-2.9.10-CVE-2020-7595.patch + libxml2-2.9.10-parenthesize-type-checks.patch + libxml2-2.9.10-CVE-2020-24977.patch + libxml2-2.9.10-fix-integer-overflow.patch + libxml2-2.9.10-icu68.patch + https://www.w3.org/XML/Test/xmlts20130923.tar.gz) +sha256sums=('SKIP' + '37eb81a8ec6929eed1514e891bff2dd05b450bcf0c712153880c485b7366c17c' + '50f04807b86a179d051fb86755e82f55ba7aac9d0c005eefea93d2599a911d01' + 'cfe1b3e0f026df6f979dbd77c1dcd1268e60acf3d7a8ff3f480b4e67bfcc19d6' + 'c6105ff40d7b1b140fcd821b5d64ab8c7b596708071c26964727e7352b07ac7e' + 'b63c161e4c8a6f0a65ba091c3d3ed09d3110d21f997ee61077c782b311fd4b33' + '62eafffc2b4949489c261c63883d27c2e83d688f1d4c899000b283e4c2a682be' + 'fd227780ad5699bebca7ef412d2d50fb1d21a54f6e3fdcad0bda5bdc8f8b2525' + 'f02a435761f26ff664041d49f9d05924dc627bf103c7f542feee891f69aa84a2' + '9b61db9f5dbffa545f4b8d78422167083a8568c59bd1129f94138f936cf6fc1f') + +pkgver() { + cd "$_pkgname" + git describe --always --tags | sed 's/-rc/rc/;s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$_pkgname" + + # From https://src.fedoraproject.org/rpms/libxml2/tree/master + patch -Np1 -i ../libxml2-2.9.8-python3-unicode-errors.patch + patch -Np1 -i ../fix-relaxed-approach-to-nested-documents.patch + patch -Np1 -i ../libxml2-2.9.10-CVE-2019-20388.patch + patch -Np1 -i ../libxml2-2.9.10-CVE-2020-7595.patch + patch -Np1 -i ../libxml2-2.9.10-parenthesize-type-checks.patch + patch -Np1 -i ../libxml2-2.9.10-CVE-2020-24977.patch + patch -Np1 -i ../libxml2-2.9.10-fix-integer-overflow.patch + + patch -Np1 -i ../libxml2-2.9.10-icu68.patch + + NOCONFIGURE=1 ./autogen.sh +} + +build() ( + cd "$_pkgname" + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure \ + --prefix=/usr/static \ + --disable-shared \ + --enable-static \ + --with-threads \ + --without-history \ + --without-icu \ + --without-docbook \ + --without-html + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool + make +) + +#check() { +# cd "$_pkgname" +# make check +#} + +package() { + cd "$_pkgname" + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/static/{bin,share/man,share/doc,share/gtk-doc} + install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname" +} + +# vim: ts=2 sw=2 et: diff --git a/libxml2/static/fix-relaxed-approach-to-nested-documents.patch b/libxml2/static/fix-relaxed-approach-to-nested-documents.patch new file mode 100644 index 00000000..0a636362 --- /dev/null +++ b/libxml2/static/fix-relaxed-approach-to-nested-documents.patch @@ -0,0 +1,33 @@ +From 0815302dee2b78139832c2080348086a0564836b Mon Sep 17 00:00:00 2001 +From: Nick Wellnhofer +Date: Fri, 6 Dec 2019 12:27:29 +0100 +Subject: [PATCH] Fix freeing of nested documents + +Apparently, some libxslt RVTs can contain nested document nodes, see +issue #132. I'm not sure how this happens exactly but it can cause a +segfault in xmlFreeNodeList after the changes in commit 0762c9b6. + +Make sure not to touch the (nonexistent) `content` member of xmlDocs. +--- + tree.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/tree.c b/tree.c +index 070670f1..0d7fc98c 100644 +--- a/tree.c ++++ b/tree.c +@@ -3708,6 +3708,11 @@ xmlFreeNodeList(xmlNodePtr cur) { + (cur->type != XML_XINCLUDE_START) && + (cur->type != XML_XINCLUDE_END) && + (cur->type != XML_ENTITY_REF_NODE) && ++ (cur->type != XML_DOCUMENT_NODE) && ++#ifdef LIBXML_DOCB_ENABLED ++ (cur->type != XML_DOCB_DOCUMENT_NODE) && ++#endif ++ (cur->type != XML_HTML_DOCUMENT_NODE) && + (cur->content != (xmlChar *) &(cur->properties))) { + DICT_FREE(cur->content) + } +-- +2.22.0 + diff --git a/libxml2/static/libxml2-2.9.10-CVE-2019-20388.patch b/libxml2/static/libxml2-2.9.10-CVE-2019-20388.patch new file mode 100644 index 00000000..3763354b --- /dev/null +++ b/libxml2/static/libxml2-2.9.10-CVE-2019-20388.patch @@ -0,0 +1,33 @@ +From 6088a74bcf7d0c42e24cff4594d804e1d3c9fbca Mon Sep 17 00:00:00 2001 +From: Zhipeng Xie +Date: Tue, 20 Aug 2019 16:33:06 +0800 +Subject: [PATCH] Fix memory leak in xmlSchemaValidateStream + +When ctxt->schema is NULL, xmlSchemaSAXPlug->xmlSchemaPreRun +alloc a new schema for ctxt->schema and set vctxt->xsiAssemble +to 1. Then xmlSchemaVStart->xmlSchemaPreRun initialize +vctxt->xsiAssemble to 0 again which cause the alloced schema +can not be freed anymore. + +Found with libFuzzer. + +Signed-off-by: Zhipeng Xie +--- + xmlschemas.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/xmlschemas.c b/xmlschemas.c +index 301c8449..39d92182 100644 +--- a/xmlschemas.c ++++ b/xmlschemas.c +@@ -28090,7 +28090,6 @@ xmlSchemaPreRun(xmlSchemaValidCtxtPtr vctxt) { + vctxt->nberrors = 0; + vctxt->depth = -1; + vctxt->skipDepth = -1; +- vctxt->xsiAssemble = 0; + vctxt->hasKeyrefs = 0; + #ifdef ENABLE_IDC_NODE_TABLES_TEST + vctxt->createIDCNodeTables = 1; +-- +2.24.1 + diff --git a/libxml2/static/libxml2-2.9.10-CVE-2020-24977.patch b/libxml2/static/libxml2-2.9.10-CVE-2020-24977.patch new file mode 100644 index 00000000..67ef0aca --- /dev/null +++ b/libxml2/static/libxml2-2.9.10-CVE-2020-24977.patch @@ -0,0 +1,36 @@ +From 50f06b3efb638efb0abd95dc62dca05ae67882c2 Mon Sep 17 00:00:00 2001 +From: Nick Wellnhofer +Date: Fri, 7 Aug 2020 21:54:27 +0200 +Subject: [PATCH] Fix out-of-bounds read with 'xmllint --htmlout' + +Make sure that truncated UTF-8 sequences don't cause an out-of-bounds +array access. + +Thanks to @SuhwanSong and the Agency for Defense Development (ADD) for +the report. + +Fixes #178. +--- + xmllint.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/xmllint.c b/xmllint.c +index f6a8e463..c647486f 100644 +--- a/xmllint.c ++++ b/xmllint.c +@@ -528,6 +528,12 @@ static void + xmlHTMLEncodeSend(void) { + char *result; + ++ /* ++ * xmlEncodeEntitiesReentrant assumes valid UTF-8, but the buffer might ++ * end with a truncated UTF-8 sequence. This is a hack to at least avoid ++ * an out-of-bounds read. ++ */ ++ memset(&buffer[sizeof(buffer)-4], 0, 4); + result = (char *) xmlEncodeEntitiesReentrant(NULL, BAD_CAST buffer); + if (result) { + xmlGenericError(xmlGenericErrorContext, "%s", result); +-- +2.28.0.rc2 + diff --git a/libxml2/static/libxml2-2.9.10-CVE-2020-7595.patch b/libxml2/static/libxml2-2.9.10-CVE-2020-7595.patch new file mode 100644 index 00000000..3dd67749 --- /dev/null +++ b/libxml2/static/libxml2-2.9.10-CVE-2020-7595.patch @@ -0,0 +1,32 @@ +From 0e1a49c8907645d2e155f0d89d4d9895ac5112b5 Mon Sep 17 00:00:00 2001 +From: Zhipeng Xie +Date: Thu, 12 Dec 2019 17:30:55 +0800 +Subject: [PATCH] Fix infinite loop in xmlStringLenDecodeEntities + +When ctxt->instate == XML_PARSER_EOF,xmlParseStringEntityRef +return NULL which cause a infinite loop in xmlStringLenDecodeEntities + +Found with libFuzzer. + +Signed-off-by: Zhipeng Xie +--- + parser.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/parser.c b/parser.c +index d1c31963..a34bb6cd 100644 +--- a/parser.c ++++ b/parser.c +@@ -2646,7 +2646,8 @@ xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len, + else + c = 0; + while ((c != 0) && (c != end) && /* non input consuming loop */ +- (c != end2) && (c != end3)) { ++ (c != end2) && (c != end3) && ++ (ctxt->instate != XML_PARSER_EOF)) { + + if (c == 0) break; + if ((c == '&') && (str[1] == '#')) { +-- +2.24.1 + diff --git a/libxml2/static/libxml2-2.9.10-fix-integer-overflow.patch b/libxml2/static/libxml2-2.9.10-fix-integer-overflow.patch new file mode 100644 index 00000000..b5a7bec1 --- /dev/null +++ b/libxml2/static/libxml2-2.9.10-fix-integer-overflow.patch @@ -0,0 +1,41 @@ +From 8e7c20a1af8776677d7890f30b7a180567701a49 Mon Sep 17 00:00:00 2001 +From: Nick Wellnhofer +Date: Mon, 3 Aug 2020 17:30:41 +0200 +Subject: [PATCH] Fix integer overflow when comparing schema dates + +Found by OSS-Fuzz. +--- + xmlschemastypes.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/xmlschemastypes.c b/xmlschemastypes.c +index 4249d700..d6b9f924 100644 +--- a/xmlschemastypes.c ++++ b/xmlschemastypes.c +@@ -3691,6 +3691,8 @@ xmlSchemaCompareDurations(xmlSchemaValPtr x, xmlSchemaValPtr y) + minday = 0; + maxday = 0; + } else { ++ if (myear > LONG_MAX / 366) ++ return -2; + /* FIXME: This doesn't take leap year exceptions every 100/400 years + into account. */ + maxday = 365 * myear + (myear + 3) / 4; +@@ -4079,6 +4081,14 @@ xmlSchemaCompareDates (xmlSchemaValPtr x, xmlSchemaValPtr y) + if ((x == NULL) || (y == NULL)) + return -2; + ++ if ((x->value.date.year > LONG_MAX / 366) || ++ (x->value.date.year < LONG_MIN / 366) || ++ (y->value.date.year > LONG_MAX / 366) || ++ (y->value.date.year < LONG_MIN / 366)) { ++ /* Possible overflow when converting to days. */ ++ return -2; ++ } ++ + if (x->value.date.tz_flag) { + + if (!y->value.date.tz_flag) { +-- +2.28.0.rc2 + diff --git a/libxml2/static/libxml2-2.9.10-icu68.patch b/libxml2/static/libxml2-2.9.10-icu68.patch new file mode 100644 index 00000000..fc11cceb --- /dev/null +++ b/libxml2/static/libxml2-2.9.10-icu68.patch @@ -0,0 +1,28 @@ +From b516ed189eb440e909f36baca1557b98e4d9ffd7 Mon Sep 17 00:00:00 2001 +From: Frederik Seiffert +Date: Thu, 12 Nov 2020 12:53:43 +0100 +Subject: [PATCH] Fix building with ICU 68. + +ICU 68 no longer defines the TRUE macro. + +Closes #204. +--- + encoding.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/encoding.c b/encoding.c +index c34aca44..264f60bb 100644 +--- a/encoding.c ++++ b/encoding.c +@@ -2004,7 +2004,7 @@ xmlEncOutputChunk(xmlCharEncodingHandler *handler, unsigned char *out, + #ifdef LIBXML_ICU_ENABLED + else if (handler->uconv_out != NULL) { + ret = xmlUconvWrapper(handler->uconv_out, 0, out, outlen, in, inlen, +- TRUE); ++ 1); + } + #endif /* LIBXML_ICU_ENABLED */ + else { +-- +GitLab + diff --git a/libxml2/static/libxml2-2.9.10-parenthesize-type-checks.patch b/libxml2/static/libxml2-2.9.10-parenthesize-type-checks.patch new file mode 100644 index 00000000..14f5332f --- /dev/null +++ b/libxml2/static/libxml2-2.9.10-parenthesize-type-checks.patch @@ -0,0 +1,92 @@ +From edc7b6abb0c125eeb888748c334897f60aab0854 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Fri, 28 Feb 2020 12:48:14 +0100 +Subject: [PATCH] Parenthesize Py_Check() in ifs + +In C, if expressions should be parenthesized. +PyLong_Check, PyUnicode_Check etc. happened to expand to a parenthesized +expression before, but that's not API to rely on. + +Since Python 3.9.0a4 it needs to be parenthesized explicitly. + +Fixes https://gitlab.gnome.org/GNOME/libxml2/issues/149 +--- + python/libxml.c | 4 ++-- + python/types.c | 12 ++++++------ + 2 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/python/libxml.c b/python/libxml.c +index bc676c4e..81e709f3 100644 +--- a/python/libxml.c ++++ b/python/libxml.c +@@ -294,7 +294,7 @@ xmlPythonFileReadRaw (void * context, char * buffer, int len) { + lenread = PyBytes_Size(ret); + data = PyBytes_AsString(ret); + #ifdef PyUnicode_Check +- } else if PyUnicode_Check (ret) { ++ } else if (PyUnicode_Check (ret)) { + #if PY_VERSION_HEX >= 0x03030000 + Py_ssize_t size; + const char *tmp; +@@ -359,7 +359,7 @@ xmlPythonFileRead (void * context, char * buffer, int len) { + lenread = PyBytes_Size(ret); + data = PyBytes_AsString(ret); + #ifdef PyUnicode_Check +- } else if PyUnicode_Check (ret) { ++ } else if (PyUnicode_Check (ret)) { + #if PY_VERSION_HEX >= 0x03030000 + Py_ssize_t size; + const char *tmp; +diff --git a/python/types.c b/python/types.c +index c2bafeb1..ed284ec7 100644 +--- a/python/types.c ++++ b/python/types.c +@@ -602,16 +602,16 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj) + if (obj == NULL) { + return (NULL); + } +- if PyFloat_Check (obj) { ++ if (PyFloat_Check (obj)) { + ret = xmlXPathNewFloat((double) PyFloat_AS_DOUBLE(obj)); +- } else if PyLong_Check(obj) { ++ } else if (PyLong_Check(obj)) { + #ifdef PyLong_AS_LONG + ret = xmlXPathNewFloat((double) PyLong_AS_LONG(obj)); + #else + ret = xmlXPathNewFloat((double) PyInt_AS_LONG(obj)); + #endif + #ifdef PyBool_Check +- } else if PyBool_Check (obj) { ++ } else if (PyBool_Check (obj)) { + + if (obj == Py_True) { + ret = xmlXPathNewBoolean(1); +@@ -620,14 +620,14 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj) + ret = xmlXPathNewBoolean(0); + } + #endif +- } else if PyBytes_Check (obj) { ++ } else if (PyBytes_Check (obj)) { + xmlChar *str; + + str = xmlStrndup((const xmlChar *) PyBytes_AS_STRING(obj), + PyBytes_GET_SIZE(obj)); + ret = xmlXPathWrapString(str); + #ifdef PyUnicode_Check +- } else if PyUnicode_Check (obj) { ++ } else if (PyUnicode_Check (obj)) { + #if PY_VERSION_HEX >= 0x03030000 + xmlChar *str; + const char *tmp; +@@ -650,7 +650,7 @@ libxml_xmlXPathObjectPtrConvert(PyObject *obj) + ret = xmlXPathWrapString(str); + #endif + #endif +- } else if PyList_Check (obj) { ++ } else if (PyList_Check (obj)) { + int i; + PyObject *node; + xmlNodePtr cur; +-- +2.24.1 + diff --git a/libxml2/static/libxml2-2.9.8-python3-unicode-errors.patch b/libxml2/static/libxml2-2.9.8-python3-unicode-errors.patch new file mode 100644 index 00000000..e87dcded --- /dev/null +++ b/libxml2/static/libxml2-2.9.8-python3-unicode-errors.patch @@ -0,0 +1,34 @@ +Index: libxml2-2.9.5/python/libxml.c +=================================================================== +--- libxml2-2.9.5.orig/python/libxml.c ++++ libxml2-2.9.5/python/libxml.c +@@ -1620,6 +1620,7 @@ libxml_xmlErrorFuncHandler(ATTRIBUTE_UNU + PyObject *message; + PyObject *result; + char str[1000]; ++ unsigned char *ptr = (unsigned char *)str; + + #ifdef DEBUG_ERROR + printf("libxml_xmlErrorFuncHandler(%p, %s, ...) called\n", ctx, msg); +@@ -1636,12 +1637,20 @@ libxml_xmlErrorFuncHandler(ATTRIBUTE_UNU + str[999] = 0; + va_end(ap); + ++#if PY_MAJOR_VERSION >= 3 ++ /* Ensure the error string doesn't start at UTF8 continuation. */ ++ while (*ptr && (*ptr & 0xc0) == 0x80) ++ ptr++; ++#endif ++ + list = PyTuple_New(2); + PyTuple_SetItem(list, 0, libxml_xmlPythonErrorFuncCtxt); + Py_XINCREF(libxml_xmlPythonErrorFuncCtxt); +- message = libxml_charPtrConstWrap(str); ++ message = libxml_charPtrConstWrap(ptr); + PyTuple_SetItem(list, 1, message); + result = PyEval_CallObject(libxml_xmlPythonErrorFuncHandler, list); ++ /* Forget any errors caused in the error handler. */ ++ PyErr_Clear(); + Py_XDECREF(list); + Py_XDECREF(result); + } diff --git a/lz4/static/PKGBUILD b/lz4/static/PKGBUILD new file mode 100644 index 00000000..afc6fd1a --- /dev/null +++ b/lz4/static/PKGBUILD @@ -0,0 +1,33 @@ +# Contributor: Sébastien Luttringer + +_pkgname=lz4 +pkgname=$_pkgname-static +epoch=1 +pkgver=1.9.3 +pkgrel=1 +pkgdesc='Extremely fast compression algorithm' +arch=('x86_64') +url='http://www.lz4.org/' +license=('GPL2') +makedepends=('git') +depends=('glibc') +options=(!emptydirs staticlibs) +source=("git+https://github.com/lz4/lz4.git#tag=v$pkgver") +md5sums=('SKIP') + +build() { + # do not use the main makefile, it calls sub make with -e + # exported CLFAGS by makepkg break the version. see FS#50071 + cd $_pkgname + make -C lib PREFIX=/usr/static +} + +package() { + cd $_pkgname + make install PREFIX=/usr/static DESTDIR="$pkgdir" + rm -r "$pkgdir"/usr/static/bin + rm -r "$pkgdir"/usr/static/share/man + find "$pkgdir" -iname '*.so*' -delete +} + +# vim:set ts=2 sw=2 et: diff --git a/openssl/static/PKGBUILD b/openssl/static/PKGBUILD new file mode 100644 index 00000000..30f8c18a --- /dev/null +++ b/openssl/static/PKGBUILD @@ -0,0 +1,65 @@ +# Contributor: Pierre Schmitz + +_pkgname=openssl +pkgname=$_pkgname-static +_ver=1.1.1i +# use a pacman compatible version scheme +pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}} +pkgrel=2 +pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security' +arch=('x86_64') +url='https://www.openssl.org' +license=('custom:BSD') +depends=('glibc') +makedepends=('perl') +optdepends=('ca-certificates') +options=(!emptydirs staticlibs) +source=("https://www.openssl.org/source/${_pkgname}-${_ver}.tar.gz"{,.asc} + 'ca-dir.patch') +sha256sums=('e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242' + 'SKIP' + '75aa8c2c638c8a3ebfd9fa146fc61c7ff878fc997dc6aa10d39e4b2415d669b2') +validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491' + '7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C') + +prepare() { + cd "$srcdir/$_pkgname-$_ver" + + # set ca dir to /etc/ssl by default + patch -p0 -i "$srcdir/ca-dir.patch" +} + +build() { + cd "$srcdir/$_pkgname-$_ver" + + # mark stack as non-executable: http://bugs.archlinux.org/task/12434 + ./Configure --prefix=/usr/static --openssldir=/etc/ssl --libdir=lib \ + no-shared no-ssl3-method enable-ec_nistp_64_gcc_128 linux-x86_64 \ + "-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" + + make depend + make +} + +check() { + cd "$srcdir/$_pkgname-$_ver" + + # the test fails due to missing write permissions in /etc/ssl + # revert this patch for make test + patch -p0 -R -i "$srcdir/ca-dir.patch" + + make test + + patch -p0 -i "$srcdir/ca-dir.patch" + # re-run make to re-generate CA.pl from th patched .in file. + make apps/CA.pl +} + +package() { + cd "$srcdir/$_pkgname-$_ver" + + make DESTDIR="$pkgdir" install_sw + rm -r "$pkgdir"/usr/static/bin + + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/openssl/static/ca-dir.patch b/openssl/static/ca-dir.patch new file mode 100644 index 00000000..d0ad7047 --- /dev/null +++ b/openssl/static/ca-dir.patch @@ -0,0 +1,31 @@ +--- apps/CA.pl.in 2019-09-10 15:13:07.000000000 +0200 ++++ apps/CA.pl.in 2019-10-06 09:34:23.960864556 +0200 +@@ -33,7 +33,7 @@ + my $PKCS12 = "$openssl pkcs12"; + + # default openssl.cnf file has setup as per the following +-my $CATOP = "./demoCA"; ++my $CATOP = "/etc/ssl"; + my $CAKEY = "cakey.pem"; + my $CAREQ = "careq.pem"; + my $CACERT = "cacert.pem"; +--- apps/openssl.cnf 2019-09-10 15:13:07.000000000 +0200 ++++ apps/openssl.cnf 2019-10-06 09:34:23.960864556 +0200 +@@ -42,7 +42,7 @@ + #################################################################### + [ CA_default ] + +-dir = ./demoCA # Where everything is kept ++dir = /etc/ssl # Where everything is kept + certs = $dir/certs # Where the issued certs are kept + crl_dir = $dir/crl # Where the issued crl are kept + database = $dir/index.txt # database index file. +@@ -325,7 +325,7 @@ + [ tsa_config1 ] + + # These are used by the TSA reply generation only. +-dir = ./demoCA # TSA root directory ++dir = /etc/ssl # TSA root directory + serial = $dir/tsaserial # The current serial number (mandatory) + crypto_device = builtin # OpenSSL engine to use for signing + signer_cert = $dir/tsacert.pem # The TSA signing certificate diff --git a/pcre/static/PKGBUILD b/pcre/static/PKGBUILD new file mode 100644 index 00000000..57817789 --- /dev/null +++ b/pcre/static/PKGBUILD @@ -0,0 +1,63 @@ +# Contributor: Sébastien "Seblu" Luttringer +# Contributor: Allan McRae +# Contributor: Eric Belanger +# Contributor: John Proctor + +_pkgname=pcre +pkgname=$_pkgname-static +pkgver=8.44 +pkgrel=1 +pkgdesc='A library that implements Perl 5-style regular expressions' +arch=('x86_64') +url='https://www.pcre.org/' +license=('BSD') +depends=('gcc-libs') +options=(!emptydirs staticlibs) +validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel +source=("https://ftp.pcre.org/pub/pcre/$_pkgname-$pkgver.tar.bz2"{,.sig}) +sha512sums=('f26d850aab5228799e58ac8c2306fb313889332c39e29b118ef1de57677c5c90f970d68d3f475cabc64f8b982a77f04eca990ff1057f3ccf5e19bd137997c4ac' + 'SKIP') + +prepare() { + cd $_pkgname-$pkgver + # apply patch from the source array (should be a pacman feature) + local filename + for filename in "${source[@]}"; do + if [[ "$filename" =~ \.patch$ ]]; then + msg2 "Applying patch ${filename##*/}" + patch -p1 -N -i "$srcdir/${filename##*/}" + fi + done + : +} + +build() { + cd $_pkgname-$pkgver + ./configure \ + --prefix=/usr/static \ + --disable-shared \ + --enable-static \ + --enable-unicode-properties \ + --enable-pcre16 \ + --enable-pcre32 \ + --enable-jit \ + --disable-pcregrep-libz \ + --disable-pcregrep-libbz2 \ + --disable-pcretest-libreadline + make +} + +check() { + cd $_pkgname-$pkgver + make -j1 check +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/static/share/{doc,man} + + install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/pcre2/static/PKGBUILD b/pcre2/static/PKGBUILD new file mode 100644 index 00000000..9d9bcc76 --- /dev/null +++ b/pcre2/static/PKGBUILD @@ -0,0 +1,51 @@ +# Contributor: Felix Yan +# Contributor: Mateusz 'mrlemux' Lemusisk mrlemux at gmail dotcom +# Based on the pcre package by Sébastien "Seblu" Luttringer +# Contributor: Allan McRae +# Contributor: Eric Belanger +# Contributor: John Proctor + +_pkgname=pcre2 +pkgname=$_pkgname-static +pkgver=10.36 +pkgrel=1 +pkgdesc='A library that implements Perl 5-style regular expressions. 2nd version' +arch=('x86_64') +url='https://www.pcre.org/' +license=('BSD') +depends=('gcc-libs') +options=(!emptydirs staticlibs) +source=("https://ftp.pcre.org/pub/pcre/$_pkgname-$pkgver.tar.bz2"{,.sig}) +sha512sums=('fc2a920562c80c3d31cedd94028fab55314ae0fb168cac7178f286c344a11fc514939edc3b83b8e0b57c872db4e595fd5530fd1d4b8c779be629553e9ec965a3' + 'SKIP') +validpgpkeys=('45F68D54BBE23FB3039B46E59766E084FB0F43D8') # Philip Hazel + +build() { + cd $_pkgname-$pkgver + ./configure \ + --prefix=/usr/static \ + --disable-shared \ + --enable-static \ + --enable-pcre2-16 \ + --enable-pcre2-32 \ + --enable-jit \ + --disable-pcre2grep-libz \ + --disable-pcre2grep-libbz2 \ + --disable-pcre2test-libreadline + make +} + +check() { + cd $_pkgname-$pkgver + make -j1 check +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/static/share/{doc,man} + + install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/util-linux/static/0001-libmount-don-t-use-symfollow-for-helpers-on-user-mounts.patch b/util-linux/static/0001-libmount-don-t-use-symfollow-for-helpers-on-user-mounts.patch new file mode 100644 index 00000000..403bdc7e --- /dev/null +++ b/util-linux/static/0001-libmount-don-t-use-symfollow-for-helpers-on-user-mounts.patch @@ -0,0 +1,37 @@ +From 76bb9b30cfcf54b59591a57a3d2a747e514469b2 Mon Sep 17 00:00:00 2001 +From: Karel Zak +Date: Thu, 19 Nov 2020 09:49:16 +0100 +Subject: libmount: don't use "symfollow" for helpers on user mounts + +Addresses: https://github.com/karelzak/util-linux/issues/1193 +Signed-off-by: Karel Zak +--- + libmount/src/context_mount.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c +index 8c394c1ff..dd1786176 100644 +--- a/libmount/src/context_mount.c ++++ b/libmount/src/context_mount.c +@@ -415,6 +415,9 @@ static int generate_helper_optstr(struct libmnt_context *cxt, char **optstr) + * string, because there is nothing like MS_EXEC (we only have + * MS_NOEXEC in mount flags and we don't care about the original + * mount string in libmount for VFS options). ++ * ++ * This use-case makes sense for MS_SECURE flags only (see ++ * mnt_optstr_get_flags() and mnt_context_merge_mflags()). + */ + if (!(cxt->mountflags & MS_NOEXEC)) + mnt_optstr_append_option(optstr, "exec", NULL); +@@ -422,11 +425,8 @@ static int generate_helper_optstr(struct libmnt_context *cxt, char **optstr) + mnt_optstr_append_option(optstr, "suid", NULL); + if (!(cxt->mountflags & MS_NODEV)) + mnt_optstr_append_option(optstr, "dev", NULL); +- if (!(cxt->mountflags & MS_NOSYMFOLLOW)) +- mnt_optstr_append_option(optstr, "symfollow", NULL); + } + +- + if (cxt->flags & MNT_FL_SAVED_USER) + rc = mnt_optstr_set_option(optstr, "user", cxt->orig_user); + if (rc) diff --git a/util-linux/static/PKGBUILD b/util-linux/static/PKGBUILD new file mode 100644 index 00000000..bd535b8e --- /dev/null +++ b/util-linux/static/PKGBUILD @@ -0,0 +1,127 @@ +# Contributor: Tom Gundersen +# Contributor: Dave Reisner +# Contributor: judd + +_pkgname=util-linux +pkgname=$_pkgname-static +_pkgmajor=2.36 +pkgver=${_pkgmajor}.1 +pkgrel=4 +pkgdesc='Miscellaneous system utilities for Linux' +url='https://github.com/karelzak/util-linux' +arch=('x86_64') +makedepends=('systemd' 'python' 'libcap-ng' 'libxcrypt') +license=('GPL2') +options=('strip') +validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284') # Karel Zak +options=(staticlibs) +source=("https://www.kernel.org/pub/linux/utils/util-linux/v$_pkgmajor/$_pkgname-$pkgver.tar."{xz,sign} + '0001-libmount-don-t-use-symfollow-for-helpers-on-user-mounts.patch') +sha256sums=('09fac242172cd8ec27f0739d8d192402c69417617091d8c6e974841568f37eed' + 'SKIP' + '91db684edd908dd89ce9b5f00c56789d0a0eeeb5249f1bb4578e6024491823b4') + +prepare() { + cd "$_pkgname-$pkgver" + + patch -Np1 < ../0001-libmount-don-t-use-symfollow-for-helpers-on-user-mounts.patch +} + +build() { + cd "$_pkgname-$pkgver" + + # We ship Debian's hardlink in package 'hardlink', Fedora's hardlink was + # merged in util-linux. For now we disable the latter, but let's dicuss + # the details: + # https://bugs.archlinux.org/task/62896 + # https://github.com/karelzak/util-linux/issues/808 + + ./configure \ + --prefix=/usr/static \ + --libdir=/usr/static/lib \ + --bindir=/usr/static/bin \ + --sbindir=/usr/static/bin \ + --localstatedir=/var \ + --disable-shared \ + --enable-static \ + --enable-usrdir-path \ + --enable-libuuid-force-uuidd \ + --enable-libblkid \ + --enable-libmount \ + --enable-libsmartcols \ + --enable-libfdisk \ + --disable-fdisks \ + --disable-mount \ + --disable-losetup \ + --disable-zramctl \ + --disable-fsck \ + --disable-partx \ + --disable-uuidd \ + --disable-wipefs \ + --disable-mountpoint \ + --disable-fallocate \ + --disable-unshare \ + --disable-nsenter \ + --disable-setpriv \ + --disable-hardlink \ + --disable-eject \ + --disable-agetty \ + --disable-plymouth_support \ + --without-libmagic \ + --disable-cramfs \ + --disable-bfs \ + --disable-minix \ + --disable-fdformat \ + --disable-hwclock \ + --disable-hwclock-gplv3 \ + --disable-lslogins \ + --disable-wdctl \ + --disable-cal \ + --disable-logger \ + --disable-whereis \ + --disable-switch_root \ + --disable-pivot_root \ + --disable-lsmem \ + --disable-chmem \ + --disable-ipcrm \ + --disable-ipcs \ + --disable-irqtop \ + --disable-lsirq \ + --disable-rfkill \ + --disable-tunelp \ + --disable-kill \ + --disable-last \ + --disable-utmpdump \ + --enable-line \ + --disable-mesg \ + --disable-raw \ + --disable-rename \ + --disable-vipw \ + --disable-newgrp \ + --disable-chfn-chsh \ + --disable-login \ + --disable-nologin \ + --disable-sulogin \ + --disable-su \ + --disable-runuser \ + --disable-ul \ + --disable-more \ + --disable-pg \ + --disable-setterm \ + --disable-schedutils \ + --disable-wall \ + --disable-write \ + --without-systemd \ + --without-python \ + --disable-pylibmount + + make +} + +package() { + cd "$_pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/static/{sbin,bin} + rm -r "$pkgdir"/usr/static/share/{locale,man,doc,bash-completion} +} diff --git a/wayland/static/PKGBUILD b/wayland/static/PKGBUILD new file mode 100644 index 00000000..831d3455 --- /dev/null +++ b/wayland/static/PKGBUILD @@ -0,0 +1,39 @@ +# Contributor: Sébastien Luttringer +# Contributor: Tom Gundersen +# Contributor: Joel Teichroeb + +_pkgname=wayland +pkgname=$_pkgname-static +pkgver=1.18.0 +pkgrel=2 +pkgdesc='A computer display server protocol' +arch=('x86_64') +url='https://wayland.freedesktop.org/' +license=('MIT') +depends=('glibc' 'libffi-static' 'expat-static') +options=(!emptydirs staticlibs) +makedepends=('meson' 'ninja' 'libxslt' 'xmlto' 'doxygen' 'graphviz' 'docbook-xsl') +validpgpkeys=('C7223EBE4EF66513B892598911A30156E0E67611' # Bryce Harrington + 'C0066D7DB8E9AC6844D728715E54498E697F11D7' # Derek Foreman + '34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48') # emersion +source=("https://wayland.freedesktop.org/releases/$_pkgname-$pkgver.tar.xz"{,.sig}) +sha256sums=('4675a79f091020817a98fd0484e7208c8762242266967f55a67776936c2e294d' + 'SKIP') + +build() { + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + meson build $_pkgname-$pkgver --buildtype=release --prefix /usr/static --default-library static + ninja -C build +} + +#check() { +# ninja -C build test +#} + +package() { + DESTDIR="$pkgdir" ninja -C build install + rm -r "$pkgdir"/usr/static/share/{doc,man} + install -Dm 644 $_pkgname-$pkgver/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} + +# vim:set ts=2 sw=2 et: diff --git a/xcb-util-image/static/LICENSE b/xcb-util-image/static/LICENSE new file mode 100644 index 00000000..5e3822cc --- /dev/null +++ b/xcb-util-image/static/LICENSE @@ -0,0 +1,267 @@ +/* Copyright (C) 2007 Bart Massey + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* + * Copyright (C) 2008-2009 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright (C) 2008 Arnaud Fontaine + * Copyright (C) 2007-2008 Vincent Torri + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + +/* + * Copyright © 2008 Bart Massey + * Copyright © 2008 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Keith Packard + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Bart Massey + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Ian Osgood + * Copyright © 2008 Jamey Sharp + * Copyright © 2008 Josh Triplett + * Copyright © 2008 Ulrich Eckhardt + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* Copyright © 2006 Jamey Sharp. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2006 Ian Osgood + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2000 Keith Packard + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Keith Packard not be used in + * advertising or publicity pertaining to distribution of the software without + * specific, written prior permission. Keith Packard makes no + * representations about the suitability of this software for any purpose. It + * is provided "as is" without express or implied warranty. + * + * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ diff --git a/xcb-util-image/static/PKGBUILD b/xcb-util-image/static/PKGBUILD new file mode 100644 index 00000000..deb68539 --- /dev/null +++ b/xcb-util-image/static/PKGBUILD @@ -0,0 +1,39 @@ +# Contributor: Jan de Groot +# Contributor: Andreas Radke + +_pkgname=xcb-util-image +pkgname=$_pkgname-static +pkgver=0.4.0 +pkgrel=3 +pkgdesc="Utility libraries for XC Binding - Port of Xlib's XImage and XShmImage functions" +arch=('x86_64') +url="https://xcb.freedesktop.org" +license=('custom') +depends=('libxcb-static>=1.7' 'xcb-util-static>=0.3.9') +makedepends=('xorg-util-macros' 'xorgproto') +options=(!emptydirs !docs staticlibs) +source=("https://xcb.freedesktop.org/dist/${_pkgname}-${pkgver}.tar.bz2") +sha512sums=('9b7202c054e1160f9ca97a86be1210d9fb47f2119f89ca85f15f20909cca884bfe0cb88e3e71c75b65e1a0a72b980066ccac810e41a91db895c74dde77440d4f') + +build() { + cd ${_pkgname}-${pkgver} + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + export PATH=$PWD:$PATH + printf '#!/usr/bin/bash\nexec /usr/bin/pkg-config --static "$@"\n' > pkg-config + chmod +x pkg-config + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd ${_pkgname}-${pkgver} + make check +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + install -D -m644 COPYING \ + "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING +} diff --git a/xcb-util-keysyms/static/LICENSE b/xcb-util-keysyms/static/LICENSE new file mode 100644 index 00000000..5e3822cc --- /dev/null +++ b/xcb-util-keysyms/static/LICENSE @@ -0,0 +1,267 @@ +/* Copyright (C) 2007 Bart Massey + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* + * Copyright (C) 2008-2009 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright (C) 2008 Arnaud Fontaine + * Copyright (C) 2007-2008 Vincent Torri + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + +/* + * Copyright © 2008 Bart Massey + * Copyright © 2008 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Keith Packard + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Bart Massey + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Ian Osgood + * Copyright © 2008 Jamey Sharp + * Copyright © 2008 Josh Triplett + * Copyright © 2008 Ulrich Eckhardt + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* Copyright © 2006 Jamey Sharp. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2006 Ian Osgood + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2000 Keith Packard + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Keith Packard not be used in + * advertising or publicity pertaining to distribution of the software without + * specific, written prior permission. Keith Packard makes no + * representations about the suitability of this software for any purpose. It + * is provided "as is" without express or implied warranty. + * + * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ diff --git a/xcb-util-keysyms/static/PKGBUILD b/xcb-util-keysyms/static/PKGBUILD new file mode 100644 index 00000000..9548cda1 --- /dev/null +++ b/xcb-util-keysyms/static/PKGBUILD @@ -0,0 +1,37 @@ +# Contributor: Jan de Groot +# Contributor: Andreas Radke + +_pkgname=xcb-util-keysyms +pkgname=$_pkgname-static +pkgver=0.4.0 +pkgrel=3 +pkgdesc="Utility libraries for XC Binding - Standard X key constants and conversion to/from keycodes" +arch=('x86_64') +url="https://xcb.freedesktop.org" +license=('custom') +depends=('libxcb>=1.7') +makedepends=('xorg-util-macros' 'xorgproto') +options=(staticlibs) +source=("https://xcb.freedesktop.org/dist/${_pkgname}-${pkgver}.tar.bz2" + 'LICENSE') +sha512sums=('b14b3100c3ae2379f9df799c0780a1ee39267101e58e4c1c6f390f039348ca2b370bb1df203b9bc68a170d664188d9c73e3553a7ba24d98abea3ed353e8dc0c4' + '62f83468f9d9503a5a8c1ebaac78cbaefe3c485f8bfd7192817ec59254872fe2914ed66ae8b9e7f7a6ef5af283048c11390f44eb8f0f70b1c136ef5c75282e8c') + +build() { + cd ${_pkgname}-${pkgver} + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd ${_pkgname}-${pkgver} + make check +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + install -D -m644 "${srcdir}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/xcb-util-renderutil/static/LICENSE b/xcb-util-renderutil/static/LICENSE new file mode 100644 index 00000000..5e3822cc --- /dev/null +++ b/xcb-util-renderutil/static/LICENSE @@ -0,0 +1,267 @@ +/* Copyright (C) 2007 Bart Massey + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* + * Copyright (C) 2008-2009 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright (C) 2008 Arnaud Fontaine + * Copyright (C) 2007-2008 Vincent Torri + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + +/* + * Copyright © 2008 Bart Massey + * Copyright © 2008 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Keith Packard + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Bart Massey + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Ian Osgood + * Copyright © 2008 Jamey Sharp + * Copyright © 2008 Josh Triplett + * Copyright © 2008 Ulrich Eckhardt + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* Copyright © 2006 Jamey Sharp. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2006 Ian Osgood + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2000 Keith Packard + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Keith Packard not be used in + * advertising or publicity pertaining to distribution of the software without + * specific, written prior permission. Keith Packard makes no + * representations about the suitability of this software for any purpose. It + * is provided "as is" without express or implied warranty. + * + * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ diff --git a/xcb-util-renderutil/static/PKGBUILD b/xcb-util-renderutil/static/PKGBUILD new file mode 100644 index 00000000..79cbd5e4 --- /dev/null +++ b/xcb-util-renderutil/static/PKGBUILD @@ -0,0 +1,37 @@ +# Contributor: Jan de Groot +# Contributor: Andreas Radke + +_pkgname=xcb-util-renderutil +pkgname=$_pkgname-static +pkgver=0.3.9 +pkgrel=3 +pkgdesc="Utility libraries for XC Binding - Convenience functions for the Render extension" +arch=('x86_64') +url="https://xcb.freedesktop.org" +license=('custom') +depends=('libxcb>=1.7') +makedepends=('xorg-util-macros' 'xorgproto') +options=(staticlibs) +source=("https://xcb.freedesktop.org/dist/${_pkgname}-${pkgver}.tar.bz2" + 'LICENSE') +sha512sums=('24b567992ecde7e69a406efd0ffb62266610d73b4dc0e5c71093221090fa134c14b850680d1d28dc1f8f4a6f497b4118491e1894ec7c73d2c6ce959d106771cc' + '62f83468f9d9503a5a8c1ebaac78cbaefe3c485f8bfd7192817ec59254872fe2914ed66ae8b9e7f7a6ef5af283048c11390f44eb8f0f70b1c136ef5c75282e8c') + +build() { + cd ${_pkgname}-${pkgver} + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd ${_pkgname}-${pkgver} + make check +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + install -D -m644 "${srcdir}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/xcb-util-wm/static/LICENSE b/xcb-util-wm/static/LICENSE new file mode 100644 index 00000000..5e3822cc --- /dev/null +++ b/xcb-util-wm/static/LICENSE @@ -0,0 +1,267 @@ +/* Copyright (C) 2007 Bart Massey + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* + * Copyright (C) 2008-2009 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright (C) 2008 Arnaud Fontaine + * Copyright (C) 2007-2008 Vincent Torri + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + +/* + * Copyright © 2008 Bart Massey + * Copyright © 2008 Julien Danjou + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Keith Packard + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Bart Massey + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* + * Copyright © 2008 Ian Osgood + * Copyright © 2008 Jamey Sharp + * Copyright © 2008 Josh Triplett + * Copyright © 2008 Ulrich Eckhardt + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, copy, + * modify, merge, publish, distribute, sublicense, and/or sell copies + * of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or + * their institutions shall not be used in advertising or otherwise to + * promote the sale, use or other dealings in this Software without + * prior written authorization from the authors. + */ + +/* Copyright © 2006 Jamey Sharp. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2006 Ian Osgood + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Except as contained in this notice, the names of the authors or their + * institutions shall not be used in advertising or otherwise to promote the + * sale, use or other dealings in this Software without prior written + * authorization from the authors. + */ + +/* Copyright © 2000 Keith Packard + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Keith Packard not be used in + * advertising or publicity pertaining to distribution of the software without + * specific, written prior permission. Keith Packard makes no + * representations about the suitability of this software for any purpose. It + * is provided "as is" without express or implied warranty. + * + * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + */ diff --git a/xcb-util-wm/static/PKGBUILD b/xcb-util-wm/static/PKGBUILD new file mode 100644 index 00000000..66383dba --- /dev/null +++ b/xcb-util-wm/static/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jan de Groot +# Maintainer: Andreas Radke + +_pkgname=xcb-util-wm +pkgname=$_pkgname-static +pkgver=0.4.1 +pkgrel=3 +pkgdesc="Utility libraries for XC Binding - client and window-manager helpers for ICCCM" +arch=('x86_64') +url="https://xcb.freedesktop.org" +license=('custom') +depends=('libxcb>=1.7') +makedepends=('xorg-util-macros' 'xorgproto') +options=(staticlibs) +source=("https://xcb.freedesktop.org/dist/${_pkgname}-${pkgver}.tar.bz2" + 'LICENSE') +sha512sums=('cd1b3bcf9fcfc52e329ddc42b370d50dcf7d473c8e94f01cf7ea7fdbe0dc9176790890214eecb2a8ac43405f4938c121e38d282ae988cd8e90a6610d214ef326' + '62f83468f9d9503a5a8c1ebaac78cbaefe3c485f8bfd7192817ec59254872fe2914ed66ae8b9e7f7a6ef5af283048c11390f44eb8f0f70b1c136ef5c75282e8c') + +build() { + cd ${_pkgname}-${pkgver} + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd ${_pkgname}-${pkgver} + make check +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + install -D -m644 "${srcdir}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/xcb-util/static/PKGBUILD b/xcb-util/static/PKGBUILD new file mode 100644 index 00000000..74127954 --- /dev/null +++ b/xcb-util/static/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jan de Groot +# Maintainer: Andreas Radke +# Contributor: Andrea Scarpino + +_pkgname=xcb-util +pkgname=$_pkgname-static +pkgver=0.4.0 +pkgrel=3 +pkgdesc="Utility libraries for XC Binding" +arch=('x86_64') +url="https://xcb.freedesktop.org" +license=('custom') +depends=('libxcb-static>=1.7') +makedepends=('gperf' 'xorg-util-macros' 'xorgproto') +options=(staticlibs) +source=("https://xcb.freedesktop.org/dist/${_pkgname}-${pkgver}.tar.bz2") +sha512sums=('e60aaa6f582eacd05896c5fd7c8417938318a1288146f3a5b339f77eed24e211c6099963f8813daa621c94173d2934228936b491c0ed79b09a8a67d835867d0e') + +build() { + cd ${_pkgname}-${pkgver} + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + ./configure --prefix=/usr/static --disable-shared --enable-static + make +} + +check() { + cd ${_pkgname}-${pkgver} + make check +} + +package() { + cd ${_pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + install -D -m644 COPYING \ + "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} diff --git a/xz/static/PKGBUILD b/xz/static/PKGBUILD new file mode 100644 index 00000000..feab4ddb --- /dev/null +++ b/xz/static/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor: Pierre Schmitz +# Contributor: François Charette + +_pkgname=xz +pkgname=$_pkgname-static +pkgver=5.2.5 +pkgrel=1 +pkgdesc='Library and command line tools for XZ and LZMA compressed files' +arch=('x86_64') +url='https://tukaani.org/xz/' +license=('GPL' 'LGPL' 'custom') +depends=('glibc') +options=(!emptydirs staticlibs) +source=("https://tukaani.org/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.sig}) +sha256sums=('f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10' + 'SKIP') +validpgpkeys=('3690C240CE51B4670D30AD1C38EE757D69184620') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + ./configure --prefix=/usr/static \ + --disable-rpath \ + --disable-shared \ + --enable-static + make +} + +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make check +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}/" + ln -sf /usr/static/share/doc/xz/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" + rm -r "$pkgdir"/usr/static/bin + rm -r "$pkgdir"/usr/static/share/{man,doc,locale} +} diff --git a/zstd/static/PKGBUILD b/zstd/static/PKGBUILD new file mode 100644 index 00000000..35a97c24 --- /dev/null +++ b/zstd/static/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor: Bartłomiej Piotrowski +# Contributor: Andrzej Giniewicz +# Contributor: Johan Förberg + +_pkgname=zstd +pkgname=$_pkgname-static +pkgver=1.4.8 +pkgrel=1 +pkgdesc='Zstandard - Fast real-time compression algorithm' +arch=(x86_64) +url='https://facebook.github.io/zstd/' +license=(BSD GPL2) +depends=(zlib xz-static lz4-static) # zlib contains static lib +makedepends=(gtest) +options=(!emptydirs staticlibs) +source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.zst) +sha256sums=('c7ea10e20dd61b457220455e3cf553069987b968b7c63d1b9d46acbdb45623eb') + +build() { + cd $_pkgname-$pkgver + export PKG_CONFIG_PATH=/usr/static/lib/pkgconfig:/usr/lib/pkgconfig + make +} + +check() { + cd $_pkgname-$pkgver + make check +} + +package() { + cd $_pkgname-$pkgver + make PREFIX=/usr/static DESTDIR="$pkgdir/" install + rm -r "$pkgdir"/usr/static/{bin,share/man} + find "$pkgdir/usr/static" -iname '*.so*' -delete + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}