Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • apkfission/packages
  • cadey/APKFission
  • sroracle/APKFission
3 results
Show changes
Commits on Source (123)
Showing
with 671 additions and 44 deletions
Síle Ekaterin Liszka <sheila@vulpine.house> Kiyoshi Aman <kiyoshi.aman@gmail.com>
Síle Ekaterin Liszka <sheila@vulpine.house> Kiyoshi Aman <apkfission@aerdan.vulpine.house>
Síle Ekaterin Liszka <sheila@vulpine.house> Kiyoshi Aman <adelie@aerdan.vulpine.house>
Síle Ekaterin Liszka <sheila@vulpine.house> Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
Síle Ekaterin Liszka <sheila@vulpine.house> Kiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>
Síle Ekaterin Liszka <sheila@vulpine.house> Sheila Aman
Copyright (c) 2018-2024 APK Fission and Contributors.
All rights reserved.
Developed by: APK Fission
https://apkfission.net
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal with 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:
Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimers.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimers in
the documentation and/or other materials provided with the distribution.
Neither the names of Adélie Linux; Wilcox Technologies, LLC;
Adélie Software in the Public Benefit, LLC; nor the names of its
contributors may be used to endorse or promote products derived
from this Software without specific prior written permission.
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 CONTRIBUTORS 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 SOFTWARE.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>APK Fission</title>
</head>
<style>
.filetree { font-family: monospace; }
.doc { font-family: sans-serif; }
</style>
<body>
<h1>APK Fission</h1>
<p>This repository consists of <tt>APKBUILD</tt> files for software packaged by the <a href="https://apkfission.net">APK Fission</a> project directly. The following structure obtains:</p>
<ul class="filetree">
<li>README.html <span class="doc">(this file)</span></li>
<li>main/ <span class="doc">(free, open-source/libre software)</li>
<li>nonfree/ <span class="doc">(software with non-free licenses)</li>
</ul>
<p>Per APK Fission policy, only software which is rejected from the <a href="http://adelielinux.org">Ad&eacute;lie</a> or <a href="http://alpinelinux.org">Alpine</a> Linux distributions for licensing reasons only are considered for inclusion in <tt>non-free</tt>. Other software which is not yet packaged, or which may require special considerations (e.g. 'all-in-one' packages as described on APK Fission's <a href="https://apkfission.net/policy.html">policy page</a>), may be found in <tt>main</tt>.</p>
<p>Neither repository shall conflict with Ad&eacute;lie's or Alpine's <tt>user</tt> and <tt>community</tt> repositories.</p>
</body>
</html>
====================================
README for APK Fission Package Set
====================================
:Authors:
* **Síle Ekaterin Liszka**, Project Lead
* **APK Fission Contributors**, contributions
:Status:
Production
:Copyright:
© 2018-2024 APK Fission. NCSA open source license.
Introduction
============
This repository contains the APK Fission package set. It is used by APK
Fission build system to create repositories to be used by Adélie's APK
package manager.
Licences
````````
As APK Fission is a repository for open-source Linux software, packages
contained in in this repository must also be provided under a licence
recognised by the OSI_. No exceptions will be made.
.. _OSI: http://opensource.org/licenses/category
Changes
```````
Any changes to this repository - additions, removal, or version bumps -
must be reviewed before being pushed to the ``main`` branch. There are
no exceptions to this rule.
Contents
========
This section contains a high-level view of the contents of this
repository. It does not list every package available; it is merely a
guide to help you find what you need.
``main``: Open-Source Packages
``````````````````````````````
The ``main`` directory contains software which is not packaged by
Adélie. Principally, this is because the software does not build on all
Tier 1 architectures as Adélie requires, but it may also be due to
licence restrictions specified by the software developers which do not
meet Adélie's strict requirements to be considered for inclusion.
``nonfree``: Non-Free Packages
``````````````````````````````
The ``nonfree`` directory contains software which is not distributed
under a Free or Open-Source licence but which is nevertheless provided
under terms that permit free redistribution. This can include firmware
for hardware that is otherwise supported by Adélie's ``easy-kernel``
package.
``legacy``: Legacy/Abandoned Packages
`````````````````````````````````````
The ``legacy`` directory contains software which is no longer packaged
by APK Fission, for various reasons. These packages are retained for
archival reasons.
Usage
=====
This section contains usage information for this repository.
As an overlay
`````````````
APK Fission is presently designed specifically to be used with the
Adélie Linux distribution only. Certain packages may be used with other
APK-based distributions, such as Alpine Linux, but no support will be
provided.
The domain ``distfiles.apkfission.net`` is a round-robin for all
available APK Fission mirrors. You may add a repository named above to
``/etc/apk/repositories``:
::
https://distfiles.apkfission.net/adelie/$version/$repo
Where ``$version`` is the version of Adélie Linux you are using, or
``current`` for a rolling-release style distribution (which may be
unstable - you have been warned!).
``$repo`` should be replaced with the name of the repository you are
wanting to use. ``main`` is required to use APK Fission packages, as it
contains the ``apkfission-keys`` package, which contains current public
keys for APK Fission repositories.
Run ``apk update`` to update the package index on your local system.
The packages will then be available to you.
N.B. If you installed Adélie using their graphical installer and chose
to include firmware support, you are already using APK Fission and do
not need to do anything to use packages provided by APK Fission.
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=dzongkha-fonts
pkgver=2009.09
pkgrel=0
pkgdesc="Bhutanese / Dzongkha script typeface"
url="http://www.dit.gov.bt/downloads"
arch="noarch"
options="!check" # No test suite.
license="custom"
depends="fontconfig"
makedepends=""
source="$pkgname-$pkgver.zip::https://www.dit.gov.bt/sites/default/files/dzongkhafonts.zip"
builddir="$srcdir/"
unpack() {
cd "$srcdir"
local _font
unzip $pkgname-$pkgver.zip
for _font in joyig tashi uchen; do
unzip $_font.zip
done
}
package() {
cd "$builddir"
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ *.ttf
}
sha512sums="0d8019121d60714616ad15d4ca0e8d8c3038a0a60972524640c01ac7834661e981b6efb58b0469287b11712cb29cab2e194652aec0e84e8cc88d1b7395e31b54 dzongkha-fonts-2009.09.zip"
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Contributor: Ariadne Conill <nenolod@dereferenced.org>
# Contributor: Oliver Smith <ollieparanoid@bitmessage.ch>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=linux-firmware
pkgver=20180110
pkgver=20241128
pkgrel=0
pkgdesc="firmware files for linux"
#url="http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=summary"
url="http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
arch="all"
license="custom:multiple"
makedepends=
install=""
replaces="linux-grsec linux-vserver"
options="!strip !check"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-${pkgver}.tar.gz"
depends=""
makedepends="rdfind"
options="!strip !check !dbg"
source="https://distfiles.apkfission.net/src/$pkgname/$pkgname-${pkgver}.tar.gz"
_giturl="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
_upload=dev.alpinelinux.org:/archive/$pkgname/
_upload=/srv/apkfission/distfiles.apkfission.net/src/$pkgname/
_builddir="$srcdir"/$pkgname-$pkgver
# Put /lib/firmware/* folders in subpackages
_folders="3com acenic adaptec advansys amd-ucode amdgpu ar3k ath10k ath6k
ath9k_htc atmel atusb av7110 bnx2 bnx2x brcm carl9170fw cavium cis cpia2 cxgb3
cxgb4 dabusb dsp56k e100 edgeport emi26 emi62 ene-ub6250 ess go7007 i915 imx
intel isci kaweth keyspan keyspan_pda korg libertas liquidio matrox mellanox
moxa mrvl mwl8k mwlwifi myricom netronome nvidia ositech qca qcom qed qlogic
r128 radeon rockchip rsi rtl8192e rtl_bt rtl_nic rtlwifi sb16 slicoss sun sxg
tehuti ti-connectivity ti-keystone tigon ttusb-budget ueagle-atm vicam vxge yam
yamaha"
_folders="3com acenic adaptec advansys airoha amd amd-ucode amdgpu amdtee
amlogic amphion ar3k arm ath10k ath11k ath12k ath6k ath9k_htc atmel atusb
av7110 bnx2 bnx2x brcm cadence cavium cirrus cis cnm cpia2 cxgb3 cxgb4 cypress
dabusb dpaa2 dsp56k e100 edgeport emi26 emi62 ene-ub6250 ess go7007 i915 imx
inside-secure intel isci ixp4xx kaweth keyspan keyspan_pda korg libertas
liquidio matrox mediatek mellanox meson microchip moxa mrvl mwl8k mwlwifi
myricom netronome nvidia nxp ositech powervr qca qcom qed qlogic r128 radeon
realtek rockchip rsi rtl_bt rtl_nic rtlwifi rtw88 rtw89 sb16 slicoss sun sxg
tehuti ti ti-connectivity ti-keystone tigon ttusb-budget ueagle-atm vicam vxge
wfx xe yam yamaha"
subpackages="$pkgname-other"
depends="linux-firmware-other"
for i in $_folders; do
......@@ -55,6 +56,7 @@ snapshot() {
package() {
cd "${_builddir}"
make DESTDIR="${pkgdir}" FIRMWAREDIR="/lib/firmware" install
make DESTDIR="${pkgdir}" FIRMWAREDIR="/lib/firmware" dedup
rm -f "${pkgdir}/usr/lib/firmware/{Makefile,README,configure,GPL-3}"
}
......@@ -92,4 +94,4 @@ other() {
mv "$pkgdir"/lib "$subpkgdir"/
}
sha512sums="26f3bad130ddcce0d91b6e474f3a7990f590f556d6aacfe808c34483904610e8269c25197658d953510588638c7bd696e17b440e097537904b4b33c4d1fcb416 linux-firmware-20180110.tar.gz"
sha512sums="8c2e4862369ca5c97d152e0973a1d7513b42009fd5a64776b92f98e1509a1afbb4b1682b196fbc0d50a12bf488d0cd0e97229f6e11d72c58e837e24221c937fe linux-firmware-20241128.tar.gz"
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=apkfission-keys
pkgver=1.0
pkgrel=0
pkgdesc="Public keys for APK Fission packages"
url="https://apkfissio.net"
url="https://apkfission.net"
arch="noarch"
license="MIT"
depends=""
......
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=b43-fwcutter
pkgver=019
pkgrel=0
pkgdesc="Utility for extracting b43 firmware from Broadcom's wl driver"
url="http://linuxwireless.sipsolutions.net/en/users/Drivers/b43/#b43-fwcutter"
arch="all"
options="!check" # no tests
license="BSD-2-Clause"
depends=""
makedepends=""
source="https://bues.ch/b43/fwcutter/b43-fwcutter-$pkgver.tar.bz2"
build() {
cd "$builddir"
make PREFIX=/usr
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make PREFIX="$pkgdir/usr" install
}
sha512sums="2a439d1583d1ee7b13dd6a7526b78b216073e044c3934adf6615b8d2ca9a4b8c74db9791182d27baf1690b5c5ff6ce1a9c8dd4fb796e47939d055fef5bb37960 b43-fwcutter-019.tar.bz2"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=confuse
pkgver=3.3
pkgrel=0
pkgdesc="A small configuration file parser written in C"
url="https://github.com/libconfuse/libconfuse"
arch="all"
license="ISC"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://github.com/libconfuse/libconfuse/releases/download/v$pkgver/confuse-$pkgver.tar.xz"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="93cc62d98166199315f65a2f6f540a9c0d33592b69a2c6a57fd17f132aecc6ece39b9813b96c9a49ae2b66a99b7eba1188a9ce9e360e1c5fb4b973619e7088a0 confuse-3.3.tar.xz"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=flashrom
pkgver=1.4.0
pkgrel=0
pkgdesc="Utilities for flashing ROM chips"
url="https://www.flashrom.org/Flashrom"
arch="pmmx x86_64" # missing support for PCI on other archs
license="GPL-2.0+ AND BSD-3-Clause AND GPL-2.0-only"
depends=""
makedepends="libftdi1-dev pciutils-dev libusb-dev meson"
subpackages="$pkgname-dev"
source="https://download.flashrom.org/releases/$pkgname-v$pkgver.tar.xz
flashrom-1.2-fix-includes.patch"
builddir="$srcdir/$pkgname-v$pkgver"
build() {
meson setup \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
--wrap-mode=nofallback \
. output
meson compile -C output
}
check() {
meson test -C output
}
package() {
DESTDIR="$pkgdir" meson install -C output
}
sha512sums="127713f7f7ecb8fb7cd2a5484e02fd0aa6ce06496a1d3a9a19fba5ff26a09cbf911cf041b83de61183124af0cd3f339ca0cf9d4acf0f5936c02ec13023bed792 flashrom-v1.4.0.tar.xz
12fa43823a95cb53d039a3c7608924b76761c0b443d71d529f0efafbccc1cea26076ac2ab6b8299348a6d15acc87c13e6deb926758163cf6c2b1c54ac9c37749 flashrom-1.2-fix-includes.patch"
diff -Nurd flashrom-v1.2/ft2232_spi.c flashrom-v1.2.new/ft2232_spi.c
--- flashrom-v1.2/ft2232_spi.c 2019-12-01 22:23:08.000000000 +0000
+++ flashrom-v1.2.new/ft2232_spi.c 2022-06-16 00:11:20.395487303 +0000
@@ -24,7 +24,7 @@
#include "flash.h"
#include "programmer.h"
#include "spi.h"
-#include <ftdi.h>
+#include <libftdi1/ftdi.h>
/* This is not defined in libftdi.h <0.20 (c7e4c09e68cfa6f5e112334aa1b3bb23401c8dc7 to be exact).
* Some tests indicate that his is the only change that it is needed to support the FT232H in flashrom. */
diff -Nurd flashrom-v1.2/usbblaster_spi.c flashrom-v1.2.new/usbblaster_spi.c
--- flashrom-v1.2/usbblaster_spi.c 2019-11-14 22:47:32.000000000 +0000
+++ flashrom-v1.2.new/usbblaster_spi.c 2022-06-16 00:11:20.448820276 +0000
@@ -36,7 +36,7 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
-#include <ftdi.h>
+#include <libftdi1/ftdi.h>
#include "flash.h"
#include "programmer.h"
#include "spi.h"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=fwupd-efi
pkgver=1.7
pkgrel=0
pkgdesc="EFI application for fwupd"
url="https://fwupd.org"
arch="all !ppc !ppc64"
license="LGPL-2.1+"
depends=""
makedepends="gnu-efi meson py3-pefile"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/fwupd/fwupd-efi/archive/refs/tags/$pkgver.tar.gz"
build() {
meson setup \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
--wrap-mode=nofallback \
. output
meson compile -C output
}
check() {
meson test -C output
}
package() {
DESTDIR="$pkgdir" meson install -C output
}
sha512sums="db0857e76964c6e36dd8708fe3b4a0b56290543c374e40a9e1f0919e0016d59de6bd6d2e4f43fb2ddd706841917b60d36da086e1290d3351283504d287083a7e fwupd-efi-1.7.tar.gz"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=fwupd
pkgver=2.0.2
pkgrel=0
pkgdesc="Onboard firmware update service for Linux"
url="https://fwupd.org"
arch="pmmx x86_64 aarch64"
options="!check" # failed tests, investigate on real hardware
license="LGPL-2.1+ AND GPL-2.0+"
depends=""
makedepends="cmake efivar-dev elogind-dev eudev-dev fwupd-efi-dev gcab-dev
gi-docgen glib-dev gnu-efi gobject-introspection-dev help2man hwdata
libarchive-dev libdrm-dev libelf-dev libgudev-dev libgusb-dev libjcat-dev
libsoup-dev libxmlb-dev meson polkit-dev protobuf-c-dev
py3-markdown py3-pillow py3-pygobject sqlite-dev tar ttf-liberation
tpm2-tss-dev vala-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="fwupd-$pkgver.tar.gz::https://github.com/fwupd/fwupd/archive/$pkgver.tar.gz
"
case "$CARCH" in
pmmx|x86_64) makedepends="$makedepends flashrom-dev libsmbios-dev mingw-w64-tools";;
esac
build() {
PATH="/usr/gnu/bin:$PATH" meson setup \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
--wrap-mode=nofallback \
-Dsystemd=disabled \
-Delogind=enabled \
. output
PATH="/usr/gnu/bin:$PATH" meson compile -C output
}
check() {
PATH="/usr/gnu/bin:$PATH" meson test -C output
}
package() {
DESTDIR="$pkgdir" meson install -C output
}
sha512sums="b815807bd766dd60d0cc78c0d197071e4a8a693f0daac28549a74b10abb5cf67d6db74bbe33fabb2f1c104ea8c6f794d7041c9ea35129025f957d282f656fe80 fwupd-2.0.2.tar.gz"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=gcab
pkgver=1.6
pkgrel=0
pkgdesc="Gnome library for working with cabinet archives"
url="https://gitlab.gnome.org/GNOME/gcab"
arch="all"
license="LGPL-2.1+ AND LGPL-2.0+"
depends=""
makedepends="glib-dev gobject-introspection-dev gtk-doc meson vala"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/gcab/$pkgver/gcab-$pkgver.tar.xz"
build() {
meson setup \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
. output
meson compile -C output
}
check() {
meson test -C output
}
package() {
DESTDIR="$pkgdir" meson install -C output
}
sha512sums="26b8dcf47ba98e7cc073a551d1c965c13a72d298c8a4e124823bdbb20fe314c8f687232df9ae824a54d81f96fe7d9ac1a40aed24e51f8706595079cec2c61fc9 gcab-1.6.tar.xz"
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=gnu-efi
pkgver=4.0.0
pkgrel=0
pkgdesc="SDK for EFI applications"
url="https://github.com/ncroxon/gnu-efi"
# MIPS is also supported allegedly, if we ever ship that
arch="all !ppc !ppc64 !sparc64"
options="!dbg !check" # No test suite, and static libraries only.
license="(BSD-2-Clause OR GPL-2.0+) AND BSD-3-Clause AND MIT AND BSD-4-Clause"
depends=""
makedepends=""
source="$pkgname-$pkgver.tar.gz::https://github.com/ncroxon/gnu-efi/archive/refs/tags/$pkgver.tar.gz"
build() {
make
}
package() {
make install PREFIX=/usr INSTALLROOT="$pkgdir"
}
sha512sums="737fda41a45a63ab652f3e8dd5c035bc40dd66e839218c33478fe2ce81346f004b1bed79a5ec29cc282f0d699ad21256e0915482a3fa04b880dea21cae9e2b7f gnu-efi-4.0.0.tar.gz"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=libftdi1
pkgver=1.5
pkgrel=0
pkgdesc="Library for working with FTDI chips"
url="https://www.intra2net.com/en/developer/libftdi/"
arch="all"
license="LGPL-2.1+ AND LGPL-2.1-only AND MIT AND GPL-2.0-only"
depends=""
makedepends="boost-dev cmake confuse-dev doxygen graphviz libusb-dev
python3-dev swig"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.intra2net.com/en/developer/libftdi/download/libftdi1-$pkgver.tar.bz2"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DLIB_SUFFIX="" \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} \
-Wno-dev \
-DBUILD_TESTS=ON \
-DDOCUMENTATION=ON \
-DEXAMPLES=OFF \
-DFTDIPP=ON \
-DPYTHON_BINDINGS=ON \
.
make
}
check() {
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="c525b2ab6aff9ef9254971ae7d57f3549a36a36875765c48f947d52532814a2a004de1232389d4fe824a8c8ab84277b08427308573476e1da9b7db83db802f6f libftdi1-1.5.tar.bz2"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=libgusb
pkgver=0.4.9
pkgrel=0
pkgdesc="GObject wrapper for libusb"
url="https://github.com/hughsie/libgusb"
arch="all"
license="LGPL-2.1-only"
depends=""
checkdepends="hwdata"
makedepends="cmake gi-docgen glib-dev gobject-introspection-dev gtk-doc
json-glib-dev libusb-dev meson vala-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="libgusb-$pkgver.tar.gz::https://github.com/hughsie/libgusb/archive/$pkgver.tar.gz"
build() {
meson setup \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
--wrap-mode=nofallback \
. output
meson compile -C output
}
check() {
meson test -C output
}
package() {
DESTDIR="$pkgdir" meson install -C output
}
sha512sums="22cce771c488963ea078cf2914b4e731afa9a7babb94570c9412147e6a3af142deac41b9a7a80cdf74960f9001bb30312923d53e0f96eb15bf99e96207b047d4 libgusb-0.4.9.tar.gz"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=libjcat
pkgver=0.2.2
pkgrel=0
pkgdesc="Library for working with JSON catalogues"
url="https://github.com/hughsie/libjcat"
arch="all"
license="LGPL-2.1-only"
depends=""
makedepends="cmake glib-dev gnutls-dev gnutls-utils gobject-introspection-dev
gpgme-dev help2man json-glib-dev meson vala-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="libjcat-$pkgver.tar.gz::https://github.com/hughsie/libjcat/archive/$pkgver.tar.gz"
# secfixes
# 0.1.2-r1:
# - CVE-2020-10759
build() {
meson setup \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
--wrap-mode=nofallback \
. output
meson compile -C output
}
check() {
meson test -C output
}
package() {
DESTDIR="$pkgdir" meson install -C output
}
sha512sums="516575042e7807098b649fcc32b724155affcadc40594cc1538fc4cea9441aacabf4a694c44ad01af3527ec6b4f6642944a9d16392174bdea37c91ceec81df3f libjcat-0.2.2.tar.gz"
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=libsmbios
pkgver=2.4.3
pkgrel=1
pkgdesc="Library for working with Dell SMBIOS tables"
url="https://github.com/dell/libsmbios"
arch="pmmx x86_64"
license="GPL-2.0+ AND BSD-3-Clause AND BSL-1.0 AND ISC"
depends=""
makedepends="autoconf automake file libtool libxml2-dev"
checkdepends="python3"
subpackages="$pkgname-dev $pkgname-lang"
source="libsmbios-$pkgver.tar.gz::https://github.com/dell/libsmbios/archive/v$pkgver.tar.gz
compile-fixes.patch
debash.patch"
build() {
sh autogen.sh \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="7f6fb36fa9653e123b416b275953fb5652025e76dac3b4ec5600168e193ea56f8ac3ea1a3b5db29d2770e73d88152d712a35bf77a9b3fc5596570fae885585ad libsmbios-2.4.3.tar.gz
53b78d1f5f0e1d921393bb5b8a284d3a24b9af3542c6c1abb5ad749f247eb155dbeae26538823f6d7adfa34eaf9ed260c877c2faffcbf575f3d71a4c2460c54e compile-fixes.patch
ea4dca94ed8c84f05e78bfaf1ba2e3b9e7e47de8af4cb930c38656602795ee43187c119c8df2779bed4edc3a7eda658b5194da484bf343cfa6bc50fb399944da debash.patch"
diff -ru libsmbios-2.4.2.orig/src/libsmbios_c/cmos/cmos_linux.c libsmbios-2.4.2/src/libsmbios_c/cmos/cmos_linux.c
--- libsmbios-2.4.2.orig/src/libsmbios_c/cmos/cmos_linux.c 2018-06-06 17:40:24.000000000 +0300
+++ libsmbios-2.4.2/src/libsmbios_c/cmos/cmos_linux.c 2019-06-07 16:37:59.007546237 +0300
@@ -35,6 +35,13 @@
// private
#include "cmos_impl.h"
+#ifndef outb_p
+#define outb_p outb
+#endif
+#ifndef inb_p
+#define inb_p inb
+#endif
+
static int linux_read_fn(const struct cmos_access_obj *this, u8 *byte, u32 indexPort, u32 dataPort, u32 offset)
{
outb_p (offset, indexPort);
diff -ru libsmbios-2.4.2.orig/src/libsmbios_c/common/common.c libsmbios-2.4.2/src/libsmbios_c/common/common.c
--- libsmbios-2.4.2.orig/src/libsmbios_c/common/common.c 2018-06-06 17:40:24.000000000 +0300
+++ libsmbios-2.4.2/src/libsmbios_c/common/common.c 2019-06-07 16:34:05.293776855 +0300
@@ -26,10 +26,15 @@
if ((size_t)(bufsize - curstrsize - 1) < bufsize)
{
+#ifdef __GLIBC__
char *buf = strerror_r(errval, errbuf + curstrsize, bufsize - curstrsize - 1);
// GNU breakage... :(
if (buf != (errbuf + curstrsize))
strlcat(errbuf, buf, bufsize);
+#else
+ /* XSI compliant strerror_r() */
+ strerror_r(errval, errbuf + curstrsize, bufsize - curstrsize - 1);
+#endif
}
}
#endif
diff -ru libsmbios-2.4.2.orig/src/libsmbios_c/smi/smi_linux.c libsmbios-2.4.2/src/libsmbios_c/smi/smi_linux.c
--- libsmbios-2.4.2.orig/src/libsmbios_c/smi/smi_linux.c 2018-06-06 17:40:24.000000000 +0300
+++ libsmbios-2.4.2/src/libsmbios_c/smi/smi_linux.c 2019-06-07 16:34:05.293776855 +0300
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <fcntl.h>
#include <sys/file.h> // flock
#include <sys/ioctl.h> // ioctl
#include <errno.h>