From 63c1b5cd61eb14f10fca078ca93a71b435e42479 Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Sat, 28 Nov 2020 17:22:57 +0000 Subject: [PATCH] i3: moved from contrib to opt --- i3/.footprint | 44 +++++++++++++++++++++++++++++ i3/.signature | 10 +++++++ i3/Pkgfile | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 131 insertions(+) create mode 100644 i3/.footprint create mode 100644 i3/.signature create mode 100644 i3/Pkgfile diff --git a/i3/.footprint b/i3/.footprint new file mode 100644 index 000000000..b43498608 --- /dev/null +++ b/i3/.footprint @@ -0,0 +1,44 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/i3 +-rwxr-xr-x root/root usr/bin/i3-config-wizard +-rwxr-xr-x root/root usr/bin/i3-dmenu-desktop +-rwxr-xr-x root/root usr/bin/i3-dump-log +-rwxr-xr-x root/root usr/bin/i3-input +-rwxr-xr-x root/root usr/bin/i3-migrate-config-to-v4 +-rwxr-xr-x root/root usr/bin/i3-msg +-rwxr-xr-x root/root usr/bin/i3-nagbar +-rwxr-xr-x root/root usr/bin/i3-save-tree +-rwxr-xr-x root/root usr/bin/i3-sensible-editor +-rwxr-xr-x root/root usr/bin/i3-sensible-pager +-rwxr-xr-x root/root usr/bin/i3-sensible-terminal +lrwxrwxrwx root/root usr/bin/i3-with-shmlog -> i3 +-rwxr-xr-x root/root usr/bin/i3bar +drwxr-xr-x root/root usr/etc/ +drwxr-xr-x root/root usr/etc/i3/ +-rw-r--r-- root/root usr/etc/i3/config +-rw-r--r-- root/root usr/etc/i3/config.keycodes +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/i3/ +-rw-r--r-- root/root usr/include/i3/ipc.h +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rw-r--r-- root/root usr/share/applications/i3.desktop +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/i3-config-wizard.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-dmenu-desktop.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-dump-log.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-input.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-migrate-config-to-v4.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-msg.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-nagbar.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-save-tree.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-sensible-editor.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-sensible-pager.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3-sensible-terminal.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3.1.gz +-rw-r--r-- root/root usr/share/man/man1/i3bar.1.gz +drwxr-xr-x root/root usr/share/xsessions/ +-rw-r--r-- root/root usr/share/xsessions/i3-with-shmlog.desktop +-rw-r--r-- root/root usr/share/xsessions/i3.desktop diff --git a/i3/.signature b/i3/.signature new file mode 100644 index 000000000..492ef716d --- /dev/null +++ b/i3/.signature @@ -0,0 +1,10 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/ceXWKNasVm2KYr16gtJBMmkTH2qHFDHoH2h0fENFyQyliyGKm3cH86L/YsBtu4z9keZy9P7PnoV5UL0yMRcIwY= +SHA256 (Pkgfile) = a984c6124c3f251dcdd86a5690be3eccb1cd2fd3380d1fc94190dede4b14dc81 +SHA256 (.footprint) = ffddeda3d45fadfa85e007ad5f4413605d3f52ef3d4489eb7445b4fc8528afbe +SHA256 (i3-4.19.tar.xz) = aca48b03c0c70607826a1a91333065ff44d61774c152ddc9210fbc1627355872 +SHA256 (yajl-2.1.0.tar.gz) = 3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a +SHA256 (libev-4.33.tar.gz) = 507eb7b8d1015fbec5b935f34ebed15bf346bed04a11ab82b8eee848c4205aea +SHA256 (startup-notification-0.12.tar.gz) = 3c391f7e930c583095045cd2d10eb73a64f085c7fde9d260f2652c7cb3cfbe4a +SHA256 (libxkbcommon-1.0.1.tar.xz) = ab68b25341c99f2218d7cf3dad459c1827f411219901ade05bbccbdb856b6c8d +SHA256 (xcb-util-xrm-1.3.tar.bz2) = 301cf33701207ea8782d49f4cb6404abd8f2d64e16f242017fd720be7c900c85 diff --git a/i3/Pkgfile b/i3/Pkgfile new file mode 100644 index 000000000..340918065 --- /dev/null +++ b/i3/Pkgfile @@ -0,0 +1,77 @@ +# Description: A tiling window manager (depends only on ports from our ISO) +# URL: https://i3wm.org/ +# Maintainer: Juergen Daubert, jue at crux dot nu +# Depends on: cmake pango xorg-xcb-util-cursor xorg-xcb-util-keysyms xorg-xcb-util-wm + +name=i3 +version=4.19 +release=1 +source=(http://i3wm.org/downloads/$name-$version.tar.xz + https://github.com/lloyd/yajl/archive/2.1.0/yajl-2.1.0.tar.gz + http://dist.schmorp.de/libev/Attic/libev-4.33.tar.gz + http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz + http://xkbcommon.org/download/libxkbcommon-1.0.1.tar.xz + https://github.com/Airblader/xcb-util-xrm/releases/download/v1.3/xcb-util-xrm-1.3.tar.bz2) + +build() { + + local LIBS=$SRC/$name-$version/libs + install -d $LIBS/{lib,include} + + # xcb-util-xrm + cd $SRC/xcb-util-xrm-1.3 + ./configure --prefix=/ --disable-shared + make + make DESTDIR=$LIBS install + + # libxkbcommon + cd $SRC/libxkbcommon-1.0.1 + meson setup build . \ + --prefix=/ \ + --buildtype=plain \ + --default-library=static \ + -D enable-wayland=false \ + -D enable-docs=false + meson compile -C build -j ${JOBS:-1} + DESTDIR=$LIBS meson install -C build + + # yajl + cd $SRC/yajl-2.1.0 + cmake -S . -B build \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \ + -Wno-dev + cmake --build build + cp -r build/yajl-2.1.0/include $LIBS + cp build/yajl-2.1.0/lib/libyajl_s.a $LIBS/lib/libyajl.a + cp build/yajl-2.1.0/share/pkgconfig/yajl.pc $LIBS/lib/pkgconfig + + # libev + cd $SRC/libev-4.33 + ./configure --prefix=/ --disable-shared + make + make DESTDIR=$LIBS install + + # startup-notification + cd $SRC/startup-notification-0.12 + sed -i '/^Libs: /s/$/ -lX11-xcb/' libstartup-notification-1.0.pc.in + ./configure --prefix=/ --disable-shared + make + make DESTDIR=$LIBS install + mv $LIBS/include/{startup-notification-1.0/libsn,libsn} + + # i3 + cd $SRC/$name-$version + export CFLAGS="$CFLAGS -I$LIBS/include" + export LDFLAGS="$LDFLAGS -L$LIBS/lib" + meson setup build . \ + --prefix=/usr \ + --sysconfdir=/usr/etc \ + --buildtype=release \ + --pkg-config-path="$LIBS/lib/pkgconfig" + meson compile -C build -j ${JOBS:-1} + DESTDIR=$PKG meson install -C build + install -d $PKG/usr/share/man/man1 + install -m 0644 man/*.1 $PKG/usr/share/man/man1/ + rm -r $PKG/usr/share/doc +}