From 5ada668fae9d500ac5df41a512892c219aba2020 Mon Sep 17 00:00:00 2001 From: cakarsu Date: Sat, 18 Mar 2023 13:41:51 +0300 Subject: [PATCH] xdg-utils ve gerekli paketler --- app/text/xmlto/ympbuild | 32 ++++++++++++++++++++++++++ www/client/lynx/ympbuild | 44 ++++++++++++++++++++++++++++++++++++ x11/apps/xorg-xprop/ympbuild | 34 ++++++++++++++++++++++++++++ x11/apps/xorg-xset/ympbuild | 35 ++++++++++++++++++++++++++++ x11/misc/xdg-menu/ympbuild | 34 ++++++++++++++++++++++++++++ x11/misc/xdg-utils/ympbuild | 40 ++++++++++++++++++++++++++++++++ 6 files changed, 219 insertions(+) create mode 100644 app/text/xmlto/ympbuild create mode 100644 www/client/lynx/ympbuild create mode 100644 x11/apps/xorg-xprop/ympbuild create mode 100644 x11/apps/xorg-xset/ympbuild create mode 100644 x11/misc/xdg-menu/ympbuild create mode 100644 x11/misc/xdg-utils/ympbuild diff --git a/app/text/xmlto/ympbuild b/app/text/xmlto/ympbuild new file mode 100644 index 00000000..2de97772 --- /dev/null +++ b/app/text/xmlto/ympbuild @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +name='xmlto' +release='1' +version='0.0.28' +url='https://pagure.io/xmlto/' +description='Convert xml to many other formats' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('GPL') +source=("https://releases.pagure.org/xmlto/xmlto-$version.tar.bz2") +depends=(libxslt) +makedepends=(docbook-xsl) +md5sums=('93bab48d446c826399d130d959fe676f') +group=(app.text) +uses=() +arch=('x86_64') + +cd $name-$version + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64/ +} + +build(){ + make $jobs +} + +package(){ + make install $jobs +} + diff --git a/www/client/lynx/ympbuild b/www/client/lynx/ympbuild new file mode 100644 index 00000000..0c28d53e --- /dev/null +++ b/www/client/lynx/ympbuild @@ -0,0 +1,44 @@ +#!/usr/bin/env bash +name='lynx' +release='1' +version='2.8.9' +_relver=${version}rel.1 +url='https://lynx.invisible-island.net/' +description='A text browser for the World Wide Web' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('GPL') +source=("https://invisible-mirror.net/archives/lynx/tarballs/lynx$_relver.tar.bz2" + 'CVE-2021-38165.diff') +depends=(libidn2 ncurses openssl) +makedepends=() +md5sums=('44316f1b8a857b59099927edc26bef79' 'SKIP') +group=(www.client) +uses=() +arch=('x86_64') + +cd $name$_relver + +patch --forward --strip=1 --input="./CVE-2021-38165.diff" + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64/ \ + --sysconfdir=/etc \ + --with-ssl=/usr \ + --enable-nls \ + --enable-ipv6 +} + +build(){ + make $jobs +} + +package(){ + make DESTDIR="$DESTDIR" install $jobs + sed -i -e "s|^HELPFILE.*$|HELPFILE:file:///usr/share/doc/lynx/lynx_help/lynx_help_main.html|" "${DESTDIR}/etc/lynx.cfg" + + install -d "${DESTDIR}/usr/share/doc/lynx" + cp -rf lynx_help "${DESTDIR}/usr/share/doc/lynx" +} + diff --git a/x11/apps/xorg-xprop/ympbuild b/x11/apps/xorg-xprop/ympbuild new file mode 100644 index 00000000..1f7e687a --- /dev/null +++ b/x11/apps/xorg-xprop/ympbuild @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +name='xorg-xprop' +release='1' +version='1.2.6' +url='https://xorg.freedesktop.org/' +description='Property displayer for X' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('custom') +source=(https://xorg.freedesktop.org/archive/individual/app/xprop-${version}.tar.xz{,.sig}) +depends=(libX11) +makedepends=(util-macros) +md5sums=('33c090d8632a300e63efbf36edd6a333' 'SKIP') +group=(x11.apps) +uses=() +arch=('x86_64') + +cd "xprop"-$version + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64/ +} + +build(){ + make $jobs +} + +package(){ + make DESTDIR="${DESTDIR}" install $jobs + install -m755 -d "${DESTDIR}/usr/share/licenses/${name}" + install -m644 COPYING "${DESTDIR}/usr/share/licenses/${name}/" +} + diff --git a/x11/apps/xorg-xset/ympbuild b/x11/apps/xorg-xset/ympbuild new file mode 100644 index 00000000..2f418edc --- /dev/null +++ b/x11/apps/xorg-xset/ympbuild @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +name='xorg-xset' +release='1' +version='1.2.5' +url='https://xorg.freedesktop.org/' +description='User preference utility for X' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('custom') +source=(https://xorg.freedesktop.org/archive/individual/app/xset-$version.tar.xz{,.sig}) +depends=(libXmu) +makedepends=(util-macros) +md5sums=('18ff5cdff59015722431d568a5c0bad2' 'SKIP') +group=(x11.apps) +uses=() +arch=('x86_64') + +cd "xset"-$version + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64/ \ + --without-fontcache +} + +build(){ + make $jobs +} + +package(){ + make DESTDIR="$DESTDIR" install + install -m755 -d "$DESTDIR/usr/share/licenses/$name" + install -m644 COPYING "$DESTDIR/usr/share/licenses/$name/" +} + diff --git a/x11/misc/xdg-menu/ympbuild b/x11/misc/xdg-menu/ympbuild new file mode 100644 index 00000000..3116a38a --- /dev/null +++ b/x11/misc/xdg-menu/ympbuild @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +name='xdg-menu' +release='1' +version='0.7.6.3' +url='https://wiki.archlinux.org/index.php/XdgMenu' +description='automatic generate WM menu from xdg files' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('GPL') +source=("https://arch.p5n.pp.ru/~sergej/dl/2018/arch-xdg-menu-$version.tar.gz") +depends=(perl perl-xml-parser) +makedepends=() +md5sums=('153c5fd93c04f6b06c6535196fed1279') +group=(x11.misc) +uses=() +arch=('x86_64') + +cd $name-$version + +build(){ + install -D -m 0755 xdg_menu "$DESTDIR"/usr/bin/xdg_menu + install -D -m 0755 xdg_menu_su "$DESTDIR"/usr/bin/xdg_menu_su + install -D -m 0755 update-menus "$DESTDIR"/usr/bin/update-menus + install -D -m 0644 update-menus.conf "$DESTDIR"/etc/update-menus.conf +} + +package(){ + mkdir -p "$DESTDIR"/usr/share/desktop-directories/ + cp arch-desktop-directories/* "$DESTDIR"/usr/share/desktop-directories/ + mkdir -p "$DESTDIR"/etc/xdg/menus/ + cp arch-xdg-menu/* "$DESTDIR"/etc/xdg/menus/ + mkdir -p "$DESTDIR"//var/cache/xdg-menu +} + diff --git a/x11/misc/xdg-utils/ympbuild b/x11/misc/xdg-utils/ympbuild new file mode 100644 index 00000000..f130d753 --- /dev/null +++ b/x11/misc/xdg-utils/ympbuild @@ -0,0 +1,40 @@ +#!/usr/bin/env bash +name='xdg-utils' +release='1' +version='1.1.3' +url='https://www.freedesktop.org/wiki/Software/xdg-utils/' +description='Command line tools that assist applications with a variety of desktop integration tasks' +email='akarsu@protonmail.com' +maintainer='akarsu' +license=('GPLv3') +source=("https://portland.freedesktop.org/download/xdg-utils-$version.tar.gz" +"https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/21.patch") +depends=(file xorg-xset xorg-xprop) +makedepends=(docbook-xsl lynx xmlto git) +md5sums=('902042508b626027a3709d105f0b63ff' '31376a25c58f023d1bcbbb79afa9c3da') +group=(x11.misc) +uses=() +arch=('x86_64') + +cd $name-$version + +patch -Np1 -i ../21.patch + +setup(){ + ./configure --prefix=/usr \ + --libdir=/usr/lib64/ \ + #--docdir= +} + +build(){ + make $jobs +} + +package(){ + make DESTDIR="$DESTDIR" install + install -D -m644 LICENSE "$DESTDIR/usr/share/licenses/$name/LICENSE" + + # install empty directory to prevent xdg-desktop-menu install *.desktop to fail, see FS#33316 + install -dm755 "$DESTDIR"/usr/share/desktop-directories +} +