upg libgit2 libgit2-glib cups-filters

add xdg-user-dirs
This commit is contained in:
joborun linux 2022-08-25 21:47:01 +03:00
parent 6b8588dbe9
commit a0a92211a0
15 changed files with 264 additions and 83 deletions

View File

@ -6,21 +6,22 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cups-filters
pkgver=1.28.15
pkgrel=02
pkgver=1.28.16
pkgrel=01
pkgdesc="OpenPrinting CUPS Filters w/o systemd"
arch=('x86_64')
url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
depends=('lcms2' 'poppler' 'qpdf' 'imagemagick' 'liblouis' 'ijs' 'libcups')
makedepends=('ghostscript' 'python' 'mupdf-tools')
checkdepends=('ttf-dejavu') # ttf-dejavu for make check
depends=('lcms2' 'poppler' 'qpdf' 'ijs' 'libcups>=2.2.6-2' 'libexif')
makedepends=('ghostscript' 'python' 'mupdf-tools' 'liblouis')
optdepends=('ghostscript: for non-PostScript printers to print with CUPS to convert PostScript to raster images'
'foomatic-db: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-engine: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-nonfree: drivers use Ghostscript to convert PostScript to a printable form directly'
'antiword: to convert MS Word documents'
'docx2txt: to convert Microsoft OOXML text from DOCX files')
'docx2txt: to convert Microsoft OOXML text from DOCX files'
'imagemagick: for Braille embosser support'
'liblouis: for Braille embosser support')
backup=(etc/cups/cups-browsed.conf)
source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz)
@ -33,7 +34,6 @@ build() {
--with-rcdir=no \
--disable-avahi \
--with-browseremoteprotocols=DNSSD,CUPS \
--enable-auto-setup-driverless \
--with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
@ -60,6 +60,7 @@ package() {
license=('custom')
sha256sums=(a907ec769fbb72efbfbf9b540b250a08e33b6e373a8a7c343f9840fba4d0478b) # cups-filters-1.28.15.tar.xz
sha256sums=(3a400bfa751da2020775cd7d48d1647448551ff051f9345abc1df6357b199ac0) # cups-filters-1.28.16.tar.xz

View File

@ -1,24 +1,26 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=cups-filters
pkgver=1.28.15
pkgver=1.28.16
pkgrel=1
pkgdesc="OpenPrinting CUPS Filters"
arch=('x86_64')
url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
license=('custom')
depends=('lcms2' 'poppler' 'qpdf' 'imagemagick' 'liblouis' 'ijs' 'libcups>=2.2.6-2' 'systemd')
makedepends=('ghostscript' 'python' 'mupdf-tools')
depends=('lcms2' 'poppler' 'qpdf' 'ijs' 'libcups>=2.2.6-2' 'systemd' 'libexif')
makedepends=('ghostscript' 'python' 'mupdf-tools' 'liblouis')
checkdepends=('ttf-dejavu') # ttf-dejavu for make check
optdepends=('ghostscript: for non-PostScript printers to print with CUPS to convert PostScript to raster images'
'foomatic-db: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-engine: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-nonfree: drivers use Ghostscript to convert PostScript to a printable form directly'
'antiword: to convert MS Word documents'
'docx2txt: to convert Microsoft OOXML text from DOCX files')
'imagemagick: for Braille embosser support'
'liblouis: for Braille embosser support'
'antiword: to convert MS Word documents for Braille embosser support'
'docx2txt: to convert Microsoft OOXML text from DOCX files for Braille embosser support')
backup=(etc/cups/cups-browsed.conf)
source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz)
sha256sums=('a907ec769fbb72efbfbf9b540b250a08e33b6e373a8a7c343f9840fba4d0478b')
sha256sums=('3a400bfa751da2020775cd7d48d1647448551ff051f9345abc1df6357b199ac0')
build() {
cd "$pkgname"-$pkgver
@ -29,7 +31,6 @@ build() {
--with-rcdir=no \
--enable-avahi \
--with-browseremoteprotocols=DNSSD,CUPS \
--enable-auto-setup-driverless \
--with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make

View File

@ -2,10 +2,11 @@ mupdf-tools
lcms2
poppler
qpdf
imagemagick
liblouis
ijs
libcups
ghostscript
ttf-dejavu
python
libexif

View File

@ -1,5 +1,6 @@
real 0m30.489s
user 1m22.133s
sys 0m5.548s
real 1m17.181s
user 1m6.769s
sys 0m5.040s

View File

@ -5,25 +5,32 @@
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libgit2-glib
pkgver=1.0.0.1
pkgrel=02
pkgbase=libgit2-glib
pkgname=(libgit2-glib libgit2-glib-docs)
_commit=274f81c596b7c248407c14d4a7d58d72fb12cedc # tags/v1.1.0^{}
pkgver=1.1.0
pkgrel=01
pkgdesc="GLib wrapper for libgit2"
url="https://wiki.gnome.org/Projects/Libgit2-glib"
arch=('x86_64')
depends=('glibc')
makedepends=('gobject-introspection' 'glib2' 'libgit2' 'gtk-doc' 'meson'
'python-gobject' 'vala' 'git')
_commit=391b764ac7e2915ed564f5e144cfdb1ae51fbc4e # tags/v1.0.0.1^0
source=("git+https://gitlab.gnome.org/GNOME/libgit2-glib.git#commit=$_commit")
url="https://gitlab.gnome.org/GNOME/libgit2-glib"
arch=(x86_64)
makedepends=(gi-docgen git glib2 gobject-introspection gtk-doc libgit2 meson
python-gobject vala)
#options=(debug) ### uncomment this line to have the debug pkg produced
source=(git+$url.git#commit=$_commit)
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/v//g;s/-/./g'
}
build() {
@ -35,23 +42,43 @@ check() {
meson test -C build --print-errorlogs
}
package() {
depends+=('libgio-2.0.so' 'libgit2.so' 'libglib-2.0.so' 'libgobject-2.0.so')
provides+=('libgit2-glib-1.0.so')
package_libgit2-glib() {
depends=(
glib2 libgio-2.0.so libglib-2.0.so libgobject-2.0.so
glibc
libgit2 libgit2.so
)
optdepends=(
'libgit2-glib-docs: for developer documentation'
'python-gobject: for Python integration'
)
provides=(libgit2-glib-1.0.so)
meson install -C build --destdir "$pkgdir"
(
cd "$pkgdir"
_pick libgit2-glib-docs usr/share/gtk-doc
)
# strip $pkgdir from embedded paths:
python -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
python -O -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
install -vDm 644 $pkgname/{AUTHORS,ChangeLog,NEWS,README} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 $pkgname/{AUTHORS,ChangeLog,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
}
package_libgit2-glib-docs() {
pkgdesc+=" - documentation"
mv -v $pkgname/* "$pkgdir"
}
#---- license gpg-key sha256sums ----
license=('LGPL2.1')
license=(LGPL2.1)
sha256sums=('SKIP')
sha256sums=(SKIP)

View File

@ -1,28 +1,35 @@
# Maintainer: David Runge <dvzrv@archlinux.org>
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgname=libgit2-glib
pkgver=1.0.0.1
pkgrel=2
pkgbase=libgit2-glib
pkgname=(libgit2-glib libgit2-glib-docs)
_commit=274f81c596b7c248407c14d4a7d58d72fb12cedc # tags/v1.1.0^{}
pkgver=1.1.0
pkgrel=1
pkgdesc="GLib wrapper for libgit2"
url="https://wiki.gnome.org/Projects/Libgit2-glib"
license=('LGPL2.1')
arch=('x86_64')
depends=('glibc')
makedepends=('gobject-introspection' 'glib2' 'libgit2' 'gtk-doc' 'meson'
'python-gobject' 'vala' 'git')
_commit=391b764ac7e2915ed564f5e144cfdb1ae51fbc4e # tags/v1.0.0.1^0
source=("git+https://gitlab.gnome.org/GNOME/libgit2-glib.git#commit=$_commit")
url="https://gitlab.gnome.org/GNOME/libgit2-glib"
license=(LGPL2.1)
arch=(x86_64)
makedepends=(gi-docgen git glib2 gobject-introspection gtk-doc libgit2 meson
python-gobject vala)
options=(debug)
source=(git+$url.git#commit=$_commit)
sha256sums=('SKIP')
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/v//g;s/-/./g'
}
build() {
@ -34,16 +41,33 @@ check() {
meson test -C build --print-errorlogs
}
package() {
depends+=('libgio-2.0.so' 'libgit2.so' 'libglib-2.0.so' 'libgobject-2.0.so')
provides+=('libgit2-glib-1.0.so')
package_libgit2-glib() {
depends=(
glib2 libgio-2.0.so libglib-2.0.so libgobject-2.0.so
glibc
libgit2 libgit2.so
)
optdepends=(
'libgit2-glib-docs: for developer documentation'
'python-gobject: for Python integration'
)
provides=(libgit2-glib-1.0.so)
meson install -C build --destdir "$pkgdir"
(
cd "$pkgdir"
_pick libgit2-glib-docs usr/share/gtk-doc
)
# strip $pkgdir from embedded paths:
python -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
python -O -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
install -vDm 644 $pkgname/{AUTHORS,ChangeLog,NEWS,README} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 $pkgname/{AUTHORS,ChangeLog,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
}
package_libgit2-glib-docs() {
pkgdesc+=" - documentation"
mv -v $pkgname/* "$pkgdir"
}

View File

@ -6,3 +6,4 @@ python-gobject
vala
git
gi-docgen

View File

@ -6,7 +6,7 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libgit2
pkgver=1.4.4
pkgver=1.5.0
pkgrel=01
epoch=1
pkgdesc="A linkable library for Git"
@ -17,12 +17,12 @@ makedepends=(cmake libssh2 python)
provides=(libgit2.so)
#options=(debug) ## uncomment this to have the debug pkg produced
source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
$pkgname-1.2.0-remove_http-parse_incompatible_tests.patch)
$pkgname-1.5.0-remove_http-parse_incompatible_tests.patch)
prepare() {
# remove tests that are only compatible with the (modified) vendored version
# of http-parser, but not with upstream http-parser
patch -d $pkgname-$pkgver -Np1 -i ../$pkgname-1.2.0-remove_http-parse_incompatible_tests.patch
patch -d $pkgname-$pkgver -Np1 -i ../$pkgname-1.5.0-remove_http-parse_incompatible_tests.patch
}
build() {
@ -34,23 +34,26 @@ build() {
-Wno-dev \
-B build \
-S $pkgname-$pkgver
make VERBOSE=1 -C build
cmake --build build
}
check() {
make VERBOSE=1 test -C build
# NOTE: disable tests requiring the internet and relying on non-existent resources
ctest --test-dir build --output-on-failure -E "invasive|online"
}
package() {
depends+=(libssh2.so)
make VERBOSE=1 DESTDIR="$pkgdir" install -C build
DESTDIR="$pkgdir" cmake --install build
install -vDm 644 $pkgname-$pkgver/{AUTHORS,README.md} -t "$pkgdir/usr/share/doc/$pkgname"
}
#---- license gpg-key sha256sums ----
license=(GPL2)
sha256sums=(e9923e9916a32f54c661d55d79c28fa304cb23617639e68bff9f94d3e18f2d4b # libgit2-1.4.4.tar.gz
e95000dd7e2a3c56015114d0b67cf1a6d2ff382d2e2a2567dbb4731300a1deb1) # libgit2-1.2.0-remove_http-parse_incompatible_tests.patch
sha256sums=(8de872a0f201b33d9522b817c92e14edb4efad18dae95cf156cf240b2efff93e # libgit2-1.5.0.tar.gz
8e232d3ac6ba756d6055aaccca9d5704417fe77f53ad91898ffbe1b1439523aa) # libgit2-1.5.0-remove_http-parse_incompatible_tests.patch

View File

@ -4,7 +4,7 @@
# Contributor: Dave Reisner <d@falconindy.com>
pkgname=libgit2
pkgver=1.4.4
pkgver=1.5.0
pkgrel=1
epoch=1
pkgdesc="A linkable library for Git"
@ -17,17 +17,17 @@ provides=(libgit2.so)
options=(debug)
source=(
$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
$pkgname-1.2.0-remove_http-parse_incompatible_tests.patch
$pkgname-1.5.0-remove_http-parse_incompatible_tests.patch
)
sha512sums=('8f4cc43de9b92866ac12e01613efe0ff808deca29ff82b6da98a38c814bb711ff3133145d0219210af7015955fbe381be6f1cb98915811d3c37e92b01eb522e9'
'01bf3a960b2e6d441017af363bff267bd1513915ebefda95012d7feb38f7020778ea0908664cc479da82f441a4dd2788772005006a9c19e87cfc234268dc3785')
b2sums=('2668e351521e1cd9d2998c45c65e2a8c30f3436d94f86ebaa10382d01afb136bbde28c71d359fb57757ebbd44b1cef1bacd302023d0803a23697aee10f03ebac'
'e725fb41c9bdfd9952693c9c47be90c10a16a78ab91f80e74c40c5510a83325575ce95674a2e21282e9c300f2bc8d430c896fa379ef744b8a8a912729fa88827')
sha512sums=('7a32b27cd32bd03ce7be6c127317f82a4ac6f16615c3234699676781f4858d057edb0410b2fe36fd2e634b00748a8b0be17f23809e09a7602ba48185134300f7'
'f9bb9ad7eb0f43003f5f72c81575ef5751b893fdf257d888b56818ee2c136b496b7cf72627a53dbd01319e33d0dd373e9d6df887360f7bec367419ef0c7ab711')
b2sums=('4108de0e8fc6a02e4172f47cb69cdfe8c85a0a72235432ca58b02d94e0bcb8390caf0c710060772551cc3a392291778ae14b561256c6d88058d0ae5a277f2fbf'
'b3c2386ba84664318573e5c24797d28db914d60782397d8b39a21b54b4fb19502945fa8fcc0d8bbe8949349b5ec705d3e1345b0cbbb51b7d9631fec922f3ac41')
prepare() {
# remove tests that are only compatible with the (modified) vendored version
# of http-parser, but not with upstream http-parser
patch -d $pkgname-$pkgver -Np1 -i ../$pkgname-1.2.0-remove_http-parse_incompatible_tests.patch
patch -d $pkgname-$pkgver -Np1 -i ../$pkgname-1.5.0-remove_http-parse_incompatible_tests.patch
}
build() {
@ -39,16 +39,17 @@ build() {
-Wno-dev \
-B build \
-S $pkgname-$pkgver
make VERBOSE=1 -C build
cmake --build build
}
check() {
make VERBOSE=1 test -C build
# NOTE: disable tests requiring the internet and relying on non-existent resources
ctest --test-dir build --output-on-failure -E "invasive|online"
}
package() {
depends+=(libssh2.so)
make VERBOSE=1 DESTDIR="$pkgdir" install -C build
DESTDIR="$pkgdir" cmake --install build
install -vDm 644 $pkgname-$pkgver/{AUTHORS,README.md} -t "$pkgdir/usr/share/doc/$pkgname"
}

53
xdg-user-dirs/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=xdg-user-dirs
pkgver=0.18
pkgrel=01
pkgdesc="Manage user directories like ~/Desktop and ~/Music w/o systemd"
url="https://www.freedesktop.org/wiki/Software/xdg-user-dirs"
arch=(x86_64)
depends=(sh)
makedepends=(docbook-xsl git)
backup=(etc/xdg/user-dirs.conf etc/xdg/user-dirs.defaults)
#install=xdg-user-dirs.install ## was meant for installing the service file properly for systemd
#options=(!emptydirs debug) #### uncomment this line to have the debug pkg produced
options=(!emptydirs)
_commit=52e71ff04416f2ca3adaf6d73193de4b8b83de46 # tags/0.18^0
source=("git+https://gitlab.freedesktop.org/xdg/$pkgname.git#commit=$_commit")
# xdg-user-dirs-update.service)
pkgver() {
cd $pkgname
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
# # We use a service
# rm "$pkgdir/etc/xdg/autostart/xdg-user-dirs.desktop"
# install -Dt "$pkgdir/usr/lib/systemd/user" -m644 ../xdg-user-dirs-update.service
}
#---- license gpg-key sha256sums ----
license=(GPL)
sha256sums=(SKIP)

View File

@ -0,0 +1,46 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: <mathieu.clabaut@gmail.com>
pkgname=xdg-user-dirs
pkgver=0.18
pkgrel=1
pkgdesc="Manage user directories like ~/Desktop and ~/Music"
url="https://www.freedesktop.org/wiki/Software/xdg-user-dirs"
arch=(x86_64)
license=(GPL)
depends=(sh systemd)
makedepends=(docbook-xsl git)
backup=(etc/xdg/user-dirs.conf etc/xdg/user-dirs.defaults)
install=xdg-user-dirs.install
options=(!emptydirs debug)
_commit=52e71ff04416f2ca3adaf6d73193de4b8b83de46 # tags/0.18^0
source=("git+https://gitlab.freedesktop.org/xdg/xdg-user-dirs.git#commit=$_commit"
xdg-user-dirs-update.service)
sha256sums=('SKIP'
'53c75f52d782e9492601400236bc8e5bfa76a26f0afd9bce3fe8df1740d341f0')
pkgver() {
cd $pkgname
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
# We use a service
rm "$pkgdir/etc/xdg/autostart/xdg-user-dirs.desktop"
install -Dt "$pkgdir/usr/lib/systemd/user" -m644 ../xdg-user-dirs-update.service
}

1
xdg-user-dirs/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {xdg-user-dirs,src,pkg}

5
xdg-user-dirs/deps Normal file
View File

@ -0,0 +1,5 @@
git
docbook-xsl
autoconf
automake
gettext

6
xdg-user-dirs/time Normal file
View File

@ -0,0 +1,6 @@
real 0m11.415s
user 0m7.026s
sys 0m0.916s

View File

@ -0,0 +1,10 @@
[Unit]
Description=Update XDG user dir configuration
Documentation=man:xdg-user-dirs-update(1)
[Service]
Type=oneshot
ExecStart=/usr/bin/xdg-user-dirs-update
[Install]
WantedBy=default.target