Compare commits
36
Commits
539638b0f9
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b63ee6ca8e | ||
|
|
75bb8d7dc2 | ||
|
|
b4192b3099 | ||
|
|
58c8a7a42c | ||
|
|
e0ebaf4b9e | ||
|
|
dc2bf570b4 | ||
|
|
cff2b3217e | ||
|
|
6e26717e29 | ||
|
|
199ac0895d | ||
|
|
fb26e4df4d | ||
|
|
c9f23615f8 | ||
|
|
10584d06fa | ||
|
|
88449be728 | ||
|
|
bbfadc6259 | ||
|
|
d48db67289 | ||
|
|
f2ee5c990e | ||
|
|
739e0f336e | ||
|
|
3fc6b2e81a | ||
|
|
250003727a | ||
|
|
a529ad2dd4 | ||
|
|
c8e3b86dff | ||
|
|
57e4ff55a0 | ||
|
|
070b7b3ce3 | ||
|
|
cad3e4ea60 | ||
|
|
11914b6fc3 | ||
|
|
685645223b | ||
|
|
73886830e0 | ||
|
|
ccd436865b | ||
|
|
4fe1ec10ef | ||
|
|
5ef9b0dda7 | ||
|
|
d7e5d91b8b | ||
|
|
14f40dd1e0 | ||
|
|
56a25f0fdb | ||
|
|
370ff89030 | ||
|
|
d7f2f91ec6 | ||
|
|
73ba43282f |
@@ -0,0 +1,40 @@
|
||||
pkgname=uchardet
|
||||
pkgver=0.0.8
|
||||
pkgdesc="Encoding detector library"
|
||||
homepage="https://www.freedesktop.org/wiki/Software/uchardet/"
|
||||
license=("GPL-2+")
|
||||
_patches=("${pkgname}-${pkgver}-cmake4.patch")
|
||||
_patch_sums=("812378feee2affbba6fb7b4c7c8ab29413577f55317f7603f6ce883c1857fd149707d658b3bf2dc5d42a27ead04d74afd98d86e97ab7b1920f3a37882099a5e0")
|
||||
sources=("${pkgname}-${pkgver}.tar.xz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://www.freedesktop.org/software/uchardet/releases/${sources[0]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("4a5dcc9ff021352f3b252e103ff1475cec62c974294b264ee9243f024633c3ae44be8c7733608624066113e635f8b156ecb08c8ff87c736d04b07641eb166382"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D BUILD_STATIC=no
|
||||
-D CHECK_SSE2=yes
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,7 @@
|
||||
https://bugs.gentoo.org/951619
|
||||
https://gitlab.freedesktop.org/uchardet/uchardet/-/merge_requests/18
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -2 +2 @@
|
||||
-cmake_minimum_required(VERSION 3.1)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
@@ -0,0 +1,29 @@
|
||||
pkgname=cliphist
|
||||
pkgver=0.7.0
|
||||
pkgdesc="Wayland clipboard manager with support for multimedia"
|
||||
homepage="https://github.com/sentriz/cliphist"
|
||||
license=("GPL-3" "MIT" "BSD")
|
||||
depends=(wl-clipboard xdg-utils)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/henri-gasc/cliphist/archive/refs/tags/v${pkgver}.tar.gz")
|
||||
sha512sums=("a74ee41fb96796ae4fc397410a466d31a49dfb6de7adf8eb9a16c236ea1db95b14d321909a68ba63fb9fc94b48919aa6634c5d41add51e294f3d6a03d4c62086")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
export CGO_CPPFLAGS="$CPPFLAGS"
|
||||
export CGO_CFLAGS="$CFLAGS"
|
||||
export CGO_CXXFLAGS="$CXXFLAGS"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
|
||||
go build \
|
||||
-ldflags "-linkmode external -extldflags '$LDFLAGS'" \
|
||||
-o $pkgname
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -vDm0755 -t "$pkgdir/usr/bin/" $pkgname
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,36 @@
|
||||
pkgname=asciidoc
|
||||
pkgver=10.2.1
|
||||
pkgdesc="A plain text human readable/writable document format"
|
||||
homepage="https://asciidoc.org/ https://github.com/asciidoc-py/asciidoc-py/"
|
||||
license=("GPL-2")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/asciidoc-py/asciidoc-py/releases/download/${pkgver}/${sources[0]}")
|
||||
sha512sums=("02d064aab8dfb05af4ae49a7c7bd1381156c6c90f95b2494218c80f01c39987cb971d68c533b5519abade77be9832b3fab653d8ae2ca7bb682c5bb720612839f")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
sed -i \
|
||||
-e '/^build: /a \\tpython3 -m build -wn' \
|
||||
-e '/pip install/{s#pip install --root#installer -d#;s#\.$#dist/*.whl#}' \
|
||||
Makefile.in
|
||||
# https://github.com/asciidoc-py/asciidoc-py/issues/234
|
||||
autoconf
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure \
|
||||
--docdir /usr/share/$pkgname \
|
||||
--prefix /usr
|
||||
make build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
make DESTDIR="${pkgdir}" docs
|
||||
install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/*.1
|
||||
# ascidocapi is deprecated, but still included in 10.x on a "provisional" basis
|
||||
local _platlib="$(python -c 'import sysconfig; print(sysconfig.get_paths()["platlib"])')"
|
||||
install -Dm0644 -t "${pkgdir}/${_platlib}/${pkgname}/" asciidoc/api.py
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,26 @@
|
||||
pkgname=netsurf-buildsystem
|
||||
_name=buildsystem
|
||||
pkgver=1.10
|
||||
pkgdesc="Build system used for netsurf and its libraries"
|
||||
homepage="https://www.netsurf-browser.org"
|
||||
license=("MIT")
|
||||
sources=("${_name}-${pkgver}.tar.gz")
|
||||
urls=("https://download.netsurf-browser.org/libs/releases/${sources[0]}")
|
||||
sha512sums=("0b0f9114567e5c0807bbf066f1c507f386dfb43bf993e3fe487b3c77edc6cee8ea573ca1105558e48b78b2c97857791fe1fe65af8e95fa0f4e205ef701677670")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
sed -e 's:/bin/which:which:' -i "makefiles/Makefile.tools"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
sed -i 's:-Werror::' Makefile
|
||||
make PREFIX=/usr #COMPONENT_TYPE=lib-shared
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
}
|
||||
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,69 @@
|
||||
pkgname=appstream
|
||||
_name="AppStream"
|
||||
pkgver=1.0.6
|
||||
pkgdesc="Cross-distro effort for providing metadata for software in the Linux ecosystem"
|
||||
homepage="https://www.freedesktop.org/wiki/Distributions/AppStream/"
|
||||
license=("LGPL-2.1+" "GPL-2+")
|
||||
depends=(
|
||||
zstd
|
||||
glib:2
|
||||
libxml2:2
|
||||
libxmlb
|
||||
libyaml
|
||||
snowball-stemmer
|
||||
curl
|
||||
gobject-introspection
|
||||
systemd
|
||||
)
|
||||
bdepends=(
|
||||
libxslt
|
||||
itstool
|
||||
)
|
||||
_patches=("${pkgname}-1.0.0-disable-Werror-flags.patch")
|
||||
_patch_sums=("e5df79dda5f433c67dd0b02c681e04cde22e6648a4d438a50314575e37353686fbcbc4fd56ee209095f71498d0e553b4d061e328fcc740b19ab7ae9281b85423")
|
||||
sources=("${_name}-${pkgver}.tar.xz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://www.freedesktop.org/software/appstream/releases/${sources[0]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("a7a34ce2b37f7a3d9f22a69ff4a546d4fb33edaec4a303bd7541ede990d8a2c2a67d17f61c9cf09d75af277e308d21baaf42d6b968eca1a11d1df983a27e02a5"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=2
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D apidocs=false
|
||||
-D docs=false
|
||||
-D compose=false
|
||||
-D maintainer=false
|
||||
-D static-analysis=false
|
||||
-D stemming=true
|
||||
-D vapi=false
|
||||
-D apt-support=false
|
||||
-D compose=false
|
||||
-D install-docs=false
|
||||
-D gir=true
|
||||
-D qt=false
|
||||
-D systemd=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,56 @@
|
||||
pkgname=appstream-glib
|
||||
pkgver=0.8.3
|
||||
pkgdesc="Provides GObjects and helper methods to read and write AppStream metadata"
|
||||
homepage="https://people.freedesktop.org/~hughsient/appstream-glib/ https://github.com/hughsie/appstream-glib"
|
||||
license=("LGPL-2.1+")
|
||||
slot=("0/8")
|
||||
depend=(
|
||||
glib
|
||||
util-linux
|
||||
libarchive
|
||||
curl
|
||||
json-glib
|
||||
"gdk-pixbuf[introspection]"
|
||||
fontconfig
|
||||
libyaml
|
||||
pango
|
||||
gobject-introspection
|
||||
)
|
||||
bdepends=(
|
||||
gperf
|
||||
libxml2:2
|
||||
libxslt
|
||||
gettext
|
||||
)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://people.freedesktop.org/~hughsient/${pkgname}/releases/${sources[0]}")
|
||||
sha512sums=("df4247b710cf234eef037f5f7be6be4872638d0686becd65e10e6a4214b0dd1b48ffbbd69179f3fb9777373926840d5b776e20a41ce11d4926114345944db127")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D dep11=true
|
||||
-D builder=true
|
||||
-D rpm=false
|
||||
-D alpm=false
|
||||
-D fonts=false
|
||||
-D man=true
|
||||
-D gtk-doc=false
|
||||
-D introspection=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,47 @@
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -90,44 +90,6 @@
|
||||
endif
|
||||
endif
|
||||
|
||||
-# a few compiler warning flags we always want enabled
|
||||
-add_project_arguments(
|
||||
- cc.get_supported_arguments([
|
||||
- '-Werror=shadow',
|
||||
- '-Werror=empty-body',
|
||||
- '-Werror=strict-prototypes',
|
||||
- '-Werror=missing-prototypes',
|
||||
- '-Werror=implicit-function-declaration',
|
||||
- '-Werror=pointer-arith',
|
||||
- '-Werror=missing-declarations',
|
||||
- '-Werror=return-type',
|
||||
- '-Werror=int-conversion',
|
||||
- '-Werror=incompatible-pointer-types',
|
||||
- '-Werror=misleading-indentation',
|
||||
- '-Werror=missing-include-dirs',
|
||||
- '-Werror=declaration-after-statement',
|
||||
- '-Werror=format-security',
|
||||
-
|
||||
- '-Wno-missing-field-initializers',
|
||||
- '-Wno-error=missing-field-initializers',
|
||||
- '-Wno-unused-parameter',
|
||||
- '-Wno-error=unused-parameter',
|
||||
- ]),
|
||||
- language: 'c'
|
||||
-)
|
||||
-add_project_arguments(
|
||||
- '-Wno-unused-parameter',
|
||||
- '-Werror=empty-body',
|
||||
- '-Werror=pointer-arith',
|
||||
- '-Werror=init-self',
|
||||
- '-Werror=missing-declarations',
|
||||
- '-Werror=return-type',
|
||||
- '-Werror=misleading-indentation',
|
||||
- '-Werror=format-security',
|
||||
-
|
||||
- language: 'cpp'
|
||||
-)
|
||||
-
|
||||
# Vendor extensions in system headers
|
||||
if host_machine.system() != 'netbsd'
|
||||
# on NetBSD, defining POSIX_C_SOURCE *removes* non-POSIX symbols from namespace,
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=libxmlb
|
||||
pkgver=0.3.24
|
||||
pkgdesc="Library to help create and query binary XML blobs"
|
||||
homepage="https://github.com/hughsie/libxmlb"
|
||||
license=("LGPL-2.1+")
|
||||
depends=(glib:2 xz-utils zstd)
|
||||
bdepends=(meson)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/hughsie/libxmlb/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("534e5fe01727b9427137c51984c9ddced91b842c712d4f34f582193c838429b396be6e444246b324d39f6732fdf582a7d89570049f4f48d4a161aff82e33aa49")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D lzma=enabled
|
||||
-D zstd=enabled
|
||||
-D gtkdoc=false
|
||||
-D introspection=false
|
||||
-D stemmer=false
|
||||
-D tests=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
rm -rf "${pkgdir}"/usr/{libexec,share}/installed-tests
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,58 @@
|
||||
pkgname=protobuf
|
||||
pkgver=31.1
|
||||
pkgdesc="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
|
||||
homepage="https://protobuf.dev/"
|
||||
license=("BSD")
|
||||
depends=(abseil-cpp zlib)
|
||||
_patches=("${pkgname}-30.0-findJsonCpp.patch")
|
||||
_patch_sums=("e3212111ada7f0a9dba717c70a9257b366a9cb6dfecfbcb67cf76645dcecf653cfb23b99ac394be16fa9c3baa8439be59ef5fa64631f31263da6c82c875665a5")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"FindJsonCpp.cmake"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/protocolbuffers/protobuf/releases/download/v${pkgver}/${sources[0]}"
|
||||
"FindJsonCpp.cmake"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("5bf730e37183defcb29cf4831128f536ad8bcdce2b2b46b297d95f3de4a037b9ff3b6c57df66a039256dcefd828ba9d43c32b01a7a82aa5c881a9ae12cadb643"
|
||||
"4a824ac0a73eebf622f999c4a78add515fea92eb44e6a1bc754343567e747f5258ca0d1c600644c67691583779a9cad814a6daf983e666c389fcaa90a2ec0aa6"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
cp "${filedir}/FindJsonCpp.cmake" cmake
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_BUILD_TYPE=release
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D protobuf_BUILD_CONFORMANCE=no
|
||||
-D protobuf_BUILD_LIBPROTOC=yes
|
||||
-D protobuf_BUILD_LIBUPB=yes
|
||||
-D protobuf_BUILD_PROTOBUF_BINARIES=yes
|
||||
-D protobuf_BUILD_PROTOC_BINARIES=yes
|
||||
-D protobuf_BUILD_SHARED_LIBS="yes"
|
||||
-D protobuf_BUILD_TESTS=no
|
||||
-D protobuf_DISABLE_RTTI="no"
|
||||
-D protobuf_INSTALL="yes"
|
||||
-D protobuf_TEST_XML_OUTDIR=no
|
||||
-D protobuf_WITH_ZLIB=yes
|
||||
-D protobuf_VERBOSE=no
|
||||
-D CMAKE_MODULE_PATH="cmake"
|
||||
-D protobuf_LOCAL_DEPENDENCIES_ONLY="yes"
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -vDm644 editors/proto.vim -t "${pkgdir}"/usr/share/vim/vimfiles/syntax
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,40 @@
|
||||
find_path(JsonCpp_INCLUDE_DIR "json/json.h"
|
||||
PATH_SUFFIXES "jsoncpp"
|
||||
DOC "jsoncpp include directory")
|
||||
mark_as_advanced(JsonCpp_INCLUDE_DIR)
|
||||
|
||||
find_library(JsonCpp_LIBRARY
|
||||
NAMES jsoncpp
|
||||
DOC "jsoncpp library")
|
||||
mark_as_advanced(JsonCpp_LIBRARY)
|
||||
|
||||
if (JsonCpp_INCLUDE_DIR AND EXISTS "${JsonCpp_INCLUDE_DIR}/json/version.h")
|
||||
file(STRINGS "${JsonCpp_INCLUDE_DIR}/json/version.h" _JsonCpp_version_lines
|
||||
REGEX "JSONCPP_VERSION_[A-Z]+")
|
||||
string(REGEX REPLACE ".*# *define +JSONCPP_VERSION_MAJOR +([0-9]+).*" "\\1" _JsonCpp_version_major "${_JsonCpp_version_lines}")
|
||||
string(REGEX REPLACE ".*# *define +JSONCPP_VERSION_MINOR +([0-9]+).*" "\\1" _JsonCpp_version_minor "${_JsonCpp_version_lines}")
|
||||
string(REGEX REPLACE ".*# *define +JSONCPP_VERSION_PATCH +([0-9]+).*" "\\1" _JsonCpp_version_patch "${_JsonCpp_version_lines}")
|
||||
set(JsonCpp_VERSION "${_JsonCpp_version_major}.${_JsonCpp_version_minor}.${_JsonCpp_version_patch}")
|
||||
unset(_JsonCpp_version_major)
|
||||
unset(_JsonCpp_version_minor)
|
||||
unset(_JsonCpp_version_patch)
|
||||
unset(_JsonCpp_version_lines)
|
||||
endif ()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(JsonCpp
|
||||
REQUIRED_VARS JsonCpp_LIBRARY JsonCpp_INCLUDE_DIR
|
||||
VERSION_VAR JsonCpp_VERSION)
|
||||
|
||||
if (JsonCpp_FOUND)
|
||||
set(JsonCpp_INCLUDE_DIRS "${JsonCpp_INCLUDE_DIR}")
|
||||
set(JsonCpp_LIBRARIES "${JsonCpp_LIBRARY}")
|
||||
|
||||
if (NOT TARGET JsonCpp::JsonCpp)
|
||||
add_library(JsonCpp::JsonCpp SHARED IMPORTED)
|
||||
set_target_properties(JsonCpp::JsonCpp PROPERTIES
|
||||
IMPORTED_LOCATION "${JsonCpp_LIBRARY}"
|
||||
IMPORTED_IMPLIB "${JsonCpp_LIBRARY}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${JsonCpp_INCLUDE_DIR}")
|
||||
endif ()
|
||||
endif ()
|
||||
@@ -0,0 +1,44 @@
|
||||
From 2fe6cac5797bead74c473c795fdc5f9d50703894 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Zander <negril.nx+gentoo@gmail.com>
|
||||
Date: Thu, 6 Mar 2025 13:19:01 +0100
|
||||
Subject: [PATCH] fix JsonCPP name
|
||||
|
||||
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
|
||||
|
||||
diff --git a/cmake/conformance.cmake b/cmake/conformance.cmake
|
||||
index 7377841..dba05aa 100644
|
||||
--- a/cmake/conformance.cmake
|
||||
+++ b/cmake/conformance.cmake
|
||||
@@ -1,9 +1,9 @@
|
||||
# Don't run jsoncpp tests.
|
||||
set(JSONCPP_WITH_TESTS OFF)
|
||||
|
||||
-if (NOT TARGET jsoncpp_lib)
|
||||
+if (NOT TARGET JsonCpp::JsonCpp)
|
||||
if (NOT protobuf_FORCE_FETCH_DEPENDENCIES)
|
||||
- find_package(jsoncpp)
|
||||
+ find_package(JsonCpp)
|
||||
endif()
|
||||
|
||||
# Fallback to fetching Googletest from github if it's not found locally.
|
||||
@@ -21,7 +21,7 @@ if (NOT TARGET jsoncpp_lib)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
-if (NOT TARGET jsoncpp_lib)
|
||||
+if (NOT TARGET JsonCpp::JsonCpp)
|
||||
message(FATAL_ERROR
|
||||
"Cannot find jsoncpp dependency that's needed to build conformance tests.\n"
|
||||
"If instead you want to skip these tests, run cmake with:\n"
|
||||
@@ -151,7 +151,7 @@ add_test(NAME conformance_cpp_test
|
||||
set(JSONCPP_WITH_TESTS OFF CACHE BOOL "Disable tests")
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
- target_link_libraries(conformance_test_runner jsoncpp_lib)
|
||||
+ target_link_libraries(conformance_test_runner JsonCpp::JsonCpp)
|
||||
else()
|
||||
target_link_libraries(conformance_test_runner jsoncpp_static)
|
||||
endif()
|
||||
--
|
||||
2.48.1
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=snowball-stemmer
|
||||
pkgver=2.2.0
|
||||
pkgdesc="Snowball compiler and stemming algorithms"
|
||||
homepage="https://snowballstem.org/ https://github.com/snowballstem/snowball/"
|
||||
license=("BSD")
|
||||
slot="0/${pkgver%%.*}"
|
||||
_patches=("snowball-stemmer-2.2.0-shared-library.patch")
|
||||
_patch_sums=("611dc546bd3744d0c9d86fea2206707eafbe6c9bd2384bbe6d017a4e8a5ef919eeb32e594157e6767a63398f7cdb2fc9d87969eb544756a7c853d33efdc45693")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://github.com/snowballstem/snowball/archive/v${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("02c43313de9de2518ea51cfb11f1c29145fc046c7838329bfdefd70b604009ad44b6db8175c25b0db31f03db30a6aec5857aa35775a9c204ec976df9cae62957"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -D snowball stemwords -t "$pkgdir/usr/bin"
|
||||
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
install -Dm644 include/libstemmer.h -t "$pkgdir/usr/include"
|
||||
install -Dm644 libstemmer.so.${pkgver} -t "$pkgdir/usr/lib"
|
||||
ln -s libstemmer.so.${pkgver} "$pkgdir/usr/lib/libstemmer.so.${pkgver%%.*}"
|
||||
ln -s libstemmer.so.${pkgver%%.*} "$pkgdir/usr/lib/libstemmer.so"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,59 @@
|
||||
This is based on a patch taken from alpinelinux, however, duplicated
|
||||
libstemmer.o and stemwords targets were removed and the patch was
|
||||
rebased on top of v2.2.0 tag.
|
||||
|
||||
Created shared library contains a lot of relocations, which slow down loading.
|
||||
It is known issue and probably the main reason why upstream does not support
|
||||
shared library yet [1].
|
||||
|
||||
[1] https://github.com/snowballstem/snowball/issues/34#issuecomment-203200078
|
||||
|
||||
Alpinelinux-patch: https://git.alpinelinux.org/aports/tree/community/snowball/libstemmer-library.patch?id=28f9d9e192876c43fd96bc5856cd9d8a50dd49c0
|
||||
Upstream-issue: https://github.com/snowballstem/snowball/issues/34
|
||||
|
||||
diff --git a/GNUmakefile b/GNUmakefile
|
||||
index 98eb1fa..9b539ec 100644
|
||||
--- a/GNUmakefile
|
||||
+++ b/GNUmakefile
|
||||
@@ -4,6 +4,8 @@
|
||||
# which hard-code it.
|
||||
SNOWBALL_VERSION = 2.2.0
|
||||
|
||||
+MAJOR_VERSION := $(shell echo $(SNOWBALL_VERSION) | cut -d. -f1)
|
||||
+
|
||||
ifeq ($(OS),Windows_NT)
|
||||
EXEEXT = .exe
|
||||
endif
|
||||
@@ -170,12 +172,17 @@ C_OTHER_OBJECTS = $(C_OTHER_SOURCES:.c=.o)
|
||||
JAVA_CLASSES = $(JAVA_SOURCES:.java=.class)
|
||||
JAVA_RUNTIME_CLASSES=$(JAVARUNTIME_SOURCES:.java=.class)
|
||||
|
||||
-CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
-CPPFLAGS=
|
||||
+CFLAGS+=-fPIC -W -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
+CPPFLAGS+=
|
||||
|
||||
INCLUDES=-Iinclude
|
||||
|
||||
-all: snowball$(EXEEXT) libstemmer.a stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||
+all: snowball$(EXEEXT) libstemmer.a libstemmer.so stemwords$(EXEEXT) $(C_OTHER_SOURCES) $(C_OTHER_HEADERS) $(C_OTHER_OBJECTS)
|
||||
+
|
||||
+libstemmer.so: libstemmer/libstemmer.o $(RUNTIME_OBJECTS) $(C_LIB_OBJECTS)
|
||||
+ $(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,$@.$(MAJOR_VERSION),-version-script,libstemmer/symbol.map -o $@.$(SNOWBALL_VERSION) $^
|
||||
+ ln -s $@.$(SNOWBALL_VERSION) $@.$(MAJOR_VERSION)
|
||||
+ ln -s $@.$(SNOWBALL_VERSION) $@
|
||||
|
||||
algorithms.mk: libstemmer/mkalgorithms.pl libstemmer/modules.txt
|
||||
libstemmer/mkalgorithms.pl algorithms.mk libstemmer/modules.txt
|
||||
diff --git a/libstemmer/symbol.map b/libstemmer/symbol.map
|
||||
new file mode 100644
|
||||
index 0000000..7a3d423
|
||||
--- /dev/null
|
||||
+++ b/libstemmer/symbol.map
|
||||
@@ -0,0 +1,6 @@
|
||||
+SB_STEMMER_0 {
|
||||
+ global:
|
||||
+ sb_stemmer_*;
|
||||
+ local:
|
||||
+ *;
|
||||
+};
|
||||
@@ -0,0 +1,31 @@
|
||||
pkgname=blueprint-compiler
|
||||
pkgver=0.18.0
|
||||
pkgdesc="Compiler for Blueprint, a markup language for GTK user interfaces"
|
||||
homepage="https://gnome.pages.gitlab.gnome.org/blueprint-compiler/ https://gitlab.gnome.org/GNOME/blueprint-compiler/"
|
||||
license=("LGPL-3+")
|
||||
depends=("dev-python/pygobject:3")
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("0f15a0e997ec8edced82053f345abbfa4a77ca77dd5976d39e135c3b8af137f712ce2cb5b33abba7450ff440fb48dcb136186e2e0b7d54d0393d5778e8b19142")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D docs=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir" --no-rebuild
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,48 @@
|
||||
pkgname=itstool
|
||||
pkgver=2.0.7
|
||||
pkgdesc="Translation tool for XML documents that uses gettext files and ITS rules"
|
||||
homepage="https://itstool.org/"
|
||||
license=("GPL-3+")
|
||||
depends=("dev-python/lxml")
|
||||
_patches=("itstool-2.0.7-raw-string-testrunner.patch")
|
||||
_patch_sums=("9864daaf40dcbb3a5074ea73d98275a1c5590044b4c1e74f980a78978a706153d5c70c347da5424757e877b0cc49307804a228404daf8f276568e214436c5610")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${pkgname}-2.0.7-switch-to-lxml.patch.xz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
_commit="19f9580f27aa261ea383b395fdef7e153f3f9e6d"
|
||||
urls=("https://github.com/itstool/itstool/archive/${_commit}.tar.gz"
|
||||
"https://dev.gentoo.org/~sam/distfiles/dev-util/itstool/${sources[1]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("52ec7c97891bb55628a34141e39029003fa09bb3f79baeeaaf782710bc14e6e4eda4c5ca360728db68928cd27f331ff0e0f6ee8a954ad723e4619f0d2193e50c"
|
||||
"40e69baa1d644aa8bdf305fee396ee4bd15203f2d55aa3d7ece088a176a35624711eaa31ef05d6f3e6a0bfdd1ed39ab41911fc968099fe34802afdc4142b200a"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
cp -v ${distdir}/${sources[1]} ./
|
||||
xz -d ${sources[1]}
|
||||
patch -p1 -i ${sources[1]%.xz}
|
||||
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,15 @@
|
||||
Followup fix to:
|
||||
https://github.com/itstool/itstool/commit/32c7d07664dc37765100285d1202d488cd6a27e8
|
||||
but for the test runner, which we can now run.
|
||||
|
||||
--- a/tests/run_tests.py
|
||||
+++ b/tests/run_tests.py
|
||||
@@ -379,7 +379,7 @@ class ITSTestRunner(unittest.TextTestRun
|
||||
test_binary_path = os.path.join(ITSTOOL_DIR, "itstool_test")
|
||||
shutil.copy(os.path.join(ITSTOOL_DIR, "itstool.in"), test_binary_path)
|
||||
data_dir = os.path.join(ITSTOOL_DIR, "its")
|
||||
- call("sed -i -e 's/@DATADIR@/%s/' %s" % (data_dir.replace('/', '\/'), test_binary_path), shell=True)
|
||||
+ call("sed -i -e 's/@DATADIR@/%s/' %s" % (data_dir.replace('/', r'\/'), test_binary_path), shell=True)
|
||||
|
||||
result = super(ITSTestRunner, self).run(test)
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=grim
|
||||
pkgver=1.5.0
|
||||
pkgdesc="Grab images from a Wayland compositor"
|
||||
homepage="https://gitlab.freedesktop.org/emersion/grim"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
wayland
|
||||
libpng
|
||||
pixman
|
||||
wayland-protocols
|
||||
)
|
||||
bdepends=(wayland-scanner)
|
||||
sources=("${pkgname}-v${pkgver}.tar.bz2")
|
||||
urls=("https://gitlab.freedesktop.org/emersion/grim/-/archive/v${pkgver}/${sources[0]}")
|
||||
sha512sums=("5eccc172a4d21be7e541f201a86909647d54533749c6dc679b8e68383a310a832f42cf8b5096ef61838c9c7b3213b32b4f54103a67b238ede718b4be834a0aed")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D jpeg=disabled
|
||||
-D man-pages=disabled
|
||||
-D bash-completions=false
|
||||
-D fish-completions=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
install -vDm644 contrib/completions/bash/grim.bash "${pkgdir}"/usr/share/bash-completion/completions/grim
|
||||
install -vDm644 contrib/completions/fish/grim.fish "${pkgdir}"/usr/share/fish/vendor_completions.d/grim.fish
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,37 @@
|
||||
pkgname=slurp
|
||||
pkgver=1.5.0
|
||||
pkgdesc="Select a region in a Wayland compositor and print it to the standard output"
|
||||
homepage="https://github.com/emersion/slurp"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
wayland-protocols
|
||||
wayland
|
||||
cairo
|
||||
libxkbcommon
|
||||
)
|
||||
bdepends=(wayland-scanner)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/emersion/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("77c4efdaa4ac411f43c598e5d654bcf61f969a5e403df6110757a7b217e02d55d0ba797729e42f8219d3bba79f58bcb36746799de765d3b25f301bf9ac3c1888")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D man-pages=disabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=swappy
|
||||
pkgver=1.5.1
|
||||
pkgdesc="A Wayland native snapshot and editor tool, inspired by Snappy on macOS"
|
||||
gomepage="https://github.com/jtheoof/swappy"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
glib:2
|
||||
cairo
|
||||
gdk-pixbuf:2
|
||||
pango
|
||||
"fontawesome[otf]"
|
||||
xorg-proto
|
||||
)
|
||||
bdepends=(scdoc)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/jtheoof/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("688ad9006965d6a3f9d2997335bc3e8172e4f6f53551bb92603cdc1f14138c25f9f7d28a87aa1cbcefc94f5da1701443a2ddf0e883b648ecc5a0b0ca28588217")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D man-pages=enabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,33 @@
|
||||
pkgname=swaync
|
||||
_name="SwayNotificationCenter"
|
||||
pkgver=0.12.3
|
||||
pkgdesc="A simple notification daemon with a GTK gui for notifications and control center"
|
||||
homepage="https://github.com/ErikReider/SwayNotificationCenter"
|
||||
license=("GPL-3")
|
||||
depends=(sassc glib:2 gobject-introspection granite json-glib libgee gtk4-layer-shell gtk:4 libadwaita libhandy libpulse dbus gdk-pixbuf:2)
|
||||
bdepends=(blueprint-compiler)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/ErikReider/${_name}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("847fa8b46f432d40f4c1c7a8559d5b3f5b431784e3dc7afb90edb57533c6662116af2d78965b2e4b9f635432b108e3a1ad518d739c6fa13ee317b0d80bcbb8cf")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D pulse-audio=true
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,42 @@
|
||||
pkgname=swayosd
|
||||
pkgver=0.2.1
|
||||
pkgdesc="GTK based on screen display for keyboard shortcuts like caps-lock and volume"
|
||||
homepage="https://github.com/ErikReider/SwayOSD"
|
||||
license=("GPL-3")
|
||||
depends=(
|
||||
glib:2
|
||||
libevdev
|
||||
libinput
|
||||
gtk4-layer-shell
|
||||
libpulse
|
||||
cairo
|
||||
gdk-pixbuf:2
|
||||
gtk+:3
|
||||
pango
|
||||
)
|
||||
bdepends=(ninja sassc)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/ErikReider/SwayOSD/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("473ab6660ad1ef8d3c7fbcad611f08dcc72e81b0e6df2714bcb2c2644361f8cea82efddd9597197e85520132ddd5e7a5c28b936170a2477208f2ad2e608c4063")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
cargo fetch --locked --target "$(rustc --print host-tuple)"
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,30 @@
|
||||
pkgname=wl-clipboard
|
||||
pkgver=2.2.1
|
||||
pkgdesc="Wayland clipboard utilities"
|
||||
homepage="https://github.com/bugaevc/wl-clipboard"
|
||||
license=("GPL-3")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/bugaevc/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("fdda519df42e1dbfb112ab7d8195a0f36cf5cf18fffffa8f32ac4688a08009e206b96a169da641f909c9acf244eb6a5201811842b4d3111e1ccdb1ce8fb4db43")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D fishcompletiondir="/usr/share/fish/vendor_completions.d"
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,37 @@
|
||||
pkgname=libadwaita
|
||||
pkgver=1.7.7
|
||||
pkgdesc="Building blocks for modern GNOME applications"
|
||||
homepage="https://gnome.pages.gitlab.gnome.org/libadwaita/ https://gitlab.gnome.org/GNOME/libadwaita"
|
||||
license=("LGPL-2.1+")
|
||||
depends=(glib:2 gtk:4 appstream fribidi gobject-introspection)
|
||||
bdepends=(vala gettext sassc)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("af59e6813794ef2ac1aa22fa4d295caacbe3b58b6398b4c1d6ab14f454d308a4040ad286132f3731e3706e1dfc036df50d15e09cd748f975724a9226b9f74d52")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nofallback
|
||||
-D python.bytecompile=1
|
||||
-D profiling=false
|
||||
-D introspection=enabled
|
||||
-D vapi=true
|
||||
-D documentation=false
|
||||
-D tests=false
|
||||
-D examples=false
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,39 @@
|
||||
pkgname=libhandy
|
||||
pkgver=1.8.3
|
||||
pkgdesc="Building blocks for modern adaptive GNOME apps"
|
||||
homepage="https://gitlab.gnome.org/GNOME/libhandy/"
|
||||
license=("LGPL-2.1+")
|
||||
slot="1"
|
||||
depends=(glib:2 gtk+:3 gobject-introspection xorg-proto)
|
||||
bdepends=(libxml:2 gettext)
|
||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
|
||||
sha512sums=("1e0ae363d2a4993c9667243715256b27cb0ecb898fa8f4ea1a914fbeb36c0a9c26447f8f13f92f5a855e45ada49f732adeb30b88d81f3ee5f984bca48db3ae65")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D profiling=false
|
||||
-D introspection=enabled
|
||||
-D vapi=true
|
||||
-D gtk_doc=false
|
||||
-D tests=false
|
||||
-D examples=false
|
||||
-D glade_catalog=disabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,18 @@
|
||||
pkgname=fontawesome
|
||||
pkgver=6.5.1
|
||||
pkgdesc="The iconic font"
|
||||
homepage="https://fontawesome.com"
|
||||
license=("CC-BY-4.0" "OFL-1.1")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/FortAwesome/Font-Awesome/archive/${pkgver}.tar.gz")
|
||||
sha512sums=("da8b9c42241e370330d01d73a8cd279bc16589bf94a6edbbd4b18924341d3db7e03258170cae31c43ee73285373544907ca31a27dbe71765cd7637531e80d418")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
install -Dvm644 otfs/*.otf -t "${pkgdir}/usr/share/fonts/${pkgname}"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,71 @@
|
||||
pkgname=imv
|
||||
pkgver=5.0.1
|
||||
pkgdesc="Minimal image viewer designed for tiling window manager users"
|
||||
homepage="https://sr.ht/~exec64/imv/"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
glib
|
||||
inih
|
||||
libglvnd
|
||||
cairo
|
||||
libxkbcommon
|
||||
pango
|
||||
libnsgif
|
||||
icu
|
||||
libjpeg-turbo
|
||||
libpng
|
||||
librsvg
|
||||
tiff
|
||||
wayland
|
||||
libwebp
|
||||
wayland-protocols
|
||||
)
|
||||
bdepends=(asciidoc wayland-scanner)
|
||||
_patches=("imv-5.0.0-nsgif-version.patch")
|
||||
_patch_sums=("ae8f20077c0a75f33fb04f0c603df10dc2dcdd3e2be19e590d6ff92eee959910524bdb370b292124fd7c3333a82ff8c0db384488dbd8962d8e1dabd41a688160")
|
||||
sources=("${pkgname}-${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://git.sr.ht/~exec64/imv/archive/v${pkgver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("9a53119b4bdb2c4b848ac5d7138f98948973bfa52ef3da111ca3c9eff5e11daf90529cd8c4898643bc7bde712b9c0e62fee9770a55f4e220abd4587ce651bba7"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D libnsbmp=disabled
|
||||
-D libnsgif=enabled
|
||||
-D libheif=disabled
|
||||
-D libjpeg=enabled
|
||||
-D libjxl=disabled
|
||||
-D libpng=enabled
|
||||
-D qoi=disabled
|
||||
-D librsvg=enabled
|
||||
-D test=disabled
|
||||
-D libtiff=enabled
|
||||
-D unicode=icu
|
||||
-D libwebp=enabled
|
||||
-D windows=wayland
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,5 @@
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -140 +140 @@
|
||||
- ['libnsgif', 'dependency', 'libnsgif', '1.0.0', ['image/gif']],
|
||||
+ ['libnsgif', 'dependency', 'libnsgif', '>= 1.0.0', ['image/gif']],
|
||||
@@ -0,0 +1,36 @@
|
||||
pkgname=libnsgif
|
||||
pkgver=1.0.0
|
||||
pkgdesc="Decoding library for the GIF image file format, written in C"
|
||||
homepage="https://www.netsurf-browser.org/projects/libnsgif/"
|
||||
license=("MIT")
|
||||
depends=(netsurf-buildsystem)
|
||||
_patches=("libnsgif-1.0.0-make-test-failures-fatal.patch")
|
||||
_patch_sums=("73a17081ac8a7c5242caffe20cae128a382910bbe053c5332a8cf156c3ad2931306adf332a65a8e772755009082e5d27cc0e35260d8a30538509fa35c1b05716")
|
||||
sources=("${pkgname}-${pkgver}-src.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://download.netsurf-browser.org/libs/releases/${sources[0]}"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("e87d5faaa4f586a098357a23bed58a8a7a79c94549b21c3338dd04bd5e074e93a7719d93d79515287b15514a2cf39aaa2abd88fd9aec8785a27594ee5cc2ddc0"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
make COMPONENT_TYPE=lib-shared INCLUDEDIR=include LIBDIR=lib \
|
||||
PREFIX=/usr
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make COMPONENT_TYPE=lib-shared DESTDIR="$pkgdir" INCLUDEDIR=include \
|
||||
LIBDIR=lib PREFIX=/usr install
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,27 @@
|
||||
https://bugs.gentoo.org/918642
|
||||
https://github.com/gentoo/gentoo/pull/35142
|
||||
|
||||
commit 6537507d754ad049dbdc324ec6bdea8b30416d48
|
||||
Author: matoro <matoro@users.noreply.github.com>
|
||||
Date: Fri Feb 16 12:44:14 2024 -0500
|
||||
|
||||
test: nsgif: make failing tests fatal
|
||||
|
||||
Right now, failing or erroring tests is not currently considered fatal.
|
||||
This makes any instance of either fatal.
|
||||
|
||||
See: https://github.com/gentoo/gentoo/pull/35142
|
||||
|
||||
diff --git a/test/runtest.sh b/test/runtest.sh
|
||||
index fd84847..ef7274c 100755
|
||||
--- a/test/runtest.sh
|
||||
+++ b/test/runtest.sh
|
||||
@@ -68,7 +68,7 @@ done
|
||||
echo "Tests:${GIFTESTTOTC} Pass:${GIFTESTPASSC} Fail:${GIFTESTFAILC} Error:${GIFTESTERRC}"
|
||||
|
||||
# exit code
|
||||
-if [ "${GIFTESTERRC}" -gt 0 ]; then
|
||||
+if [ "${GIFTESTERRC}" -gt 0 ] || [ "${GIFTESTFAILC}" -gt 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
pkgname=libplacebo
|
||||
pkgver=7.351.0
|
||||
_fastfloat_ver=8.0.1
|
||||
_glad_ver=2.0.8
|
||||
pkgdesc="Reusable library for GPU-accelerated image processing primitives"
|
||||
homepage="https://libplacebo.org/ https://code.videolan.org/videolan/libplacebo/"
|
||||
license=("LGPL-2.1+" "Apache-2.0" "MIT")
|
||||
depends=(
|
||||
"lcms:2"
|
||||
libglvnd
|
||||
shaderc
|
||||
vulkan-loader
|
||||
vulkan-headers
|
||||
)
|
||||
_patches=("libplacebo-7.351.0-vulkan-python-xml.patch")
|
||||
_patch_sums=("2a58fa430f2422c1be18c19eefecd6e3a4faff1a44758a98335f66e1b7972f458dd2dd9433efd48be5179c29fc2b907e1ac16aafd59a922cff4ef5bee7c09d4f")
|
||||
sources=("${pkgname}-v${pkgver}.tar.bz2"
|
||||
"fast_float-${_fastfloat_ver}.tar.gz"
|
||||
"${pkgname}-glad-${_glad_ver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
urls=("https://code.videolan.org/videolan/libplacebo/-/archive/v${pkgver}/${sources[0]}"
|
||||
"https://github.com/fastfloat/fast_float/archive/refs/tags/v${_fastfloat_ver}.tar.gz"
|
||||
"https://github.com/Dav1dde/glad/archive/refs/tags/v${_glad_ver}.tar.gz"
|
||||
"${_patches[@]}"
|
||||
)
|
||||
sha512sums=("86d1efdde9a43f05e87f0927acece10b9d1bc9b1c4b517e8edb86277c3d2d7937c346e1313e54374d3b562d88c3a2acfe5b2cddb82535b10edf126653687c8ce"
|
||||
"25dc7fd68c35aac97975fb8216db7f2f23cf34b81c7c550ae2857b595d74afb97e7fb78103e10c1509d21fe36c18f3fc23d1bf43120133cb870542a89d5c87bc"
|
||||
"ec964d0080c9714803f0464492b237039d2bede805d21aa9e487f3bf910447fd6440eeca59f3795dc4d5dd3b3df35101714fa21ea19eb29f6a021864a2310acd"
|
||||
"${_patch_sums[@]}"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
rmdir 3rdparty/fast_float
|
||||
tar -xf ${distdir}/${sources[1]}
|
||||
mv fast_float-${_fastfloat_ver} 3rdparty/fast_float
|
||||
rmdir 3rdparty/glad
|
||||
tar -xf ${distdir}/${sources[2]}
|
||||
mv glad-${_glad_ver} 3rdparty/glad
|
||||
|
||||
for _patch in ${_patches[@]}; do
|
||||
patch -p1 -i ${filedir}/${_patch}
|
||||
done
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D demos=false
|
||||
-D tests=false
|
||||
-D lcms=enabled
|
||||
-D libdovi=disabled
|
||||
-D glslang=disabled
|
||||
-D opengl=enabled
|
||||
-D gl-proc-addr=enabled
|
||||
-D shaderc=enabled
|
||||
-D unwind=disabled
|
||||
-D vulkan=enabled
|
||||
-D vk-proc-addr=enabled
|
||||
-D vulkan-registry=/usr/share/vulkan/registry/vk.xml
|
||||
-D xxhash=enabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_check() {
|
||||
meson test -C build --print-errorlogs
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
@@ -0,0 +1,16 @@
|
||||
Formerly only needed with python-3.14.x but backports have broke
|
||||
this with python-3.13.6 too.
|
||||
|
||||
https://bugs.gentoo.org/960115
|
||||
https://bugs.gentoo.org/961230
|
||||
https://code.videolan.org/videolan/libplacebo/-/commit/12509c0f1ee8
|
||||
--- a/src/vulkan/utils_gen.py
|
||||
+++ b/src/vulkan/utils_gen.py
|
||||
@@ -203,5 +203,6 @@
|
||||
xmlfile = find_registry_xml(datadir)
|
||||
|
||||
- registry = VkXML(ET.parse(xmlfile))
|
||||
+ tree = ET.parse(xmlfile)
|
||||
+ registry = VkXML(tree.getroot())
|
||||
with open(outfile, 'w') as f:
|
||||
f.write(TEMPLATE.render(
|
||||
@@ -0,0 +1,38 @@
|
||||
pkgname=libsixel
|
||||
pkgver=1.10.5
|
||||
pkgdesc="A lightweight, fast implementation of DEC SIXEL graphics codec"
|
||||
homepage="https://github.com/libsixel/libsixel"
|
||||
license=("MIT" "public-domain")
|
||||
depends=()
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("94fc972ee304885936d5d8fbc3dadc5feadebf1ab262bb49c9ae9b1eed19c528ed823f4d31c17326340f06a5b7ee28a1817be15ae55c3e9d0c4437cd36b3e49d")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
sed -i '/^have/d' converters/shell-completion/bash/img2sixel
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D libcurl=disabled
|
||||
-D gd=disabled
|
||||
-D gdk-pixbuf2=disabled
|
||||
-D jpeg=disabled
|
||||
-D png=disabled
|
||||
-D tests=disabled
|
||||
-D bashcompletiondir="/usr/share/bash-completion/completions"
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user