inkscape, gcr, gnome-keyring: imported from testing branch where they were pushed by mistake

This commit is contained in:
Neofytos Kolokotronis 2017-06-09 19:50:15 +02:00
parent 33d9c26825
commit 54796ebc26
5 changed files with 116 additions and 7 deletions

3
gcr/10-gcr.conf Normal file
View File

@ -0,0 +1,3 @@
@users - memlock 1024
# vim:set ft=limits:

56
gcr/PKGBUILD Normal file
View File

@ -0,0 +1,56 @@
# Contributions from ArchLinux: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/gcr
pkgname=gcr
pkgver=3.20.0+45+g4708f35
pkgrel=1
pkgdesc="A library for bits of crypto UI and parsing"
url="https://git.gnome.org/browse/gcr"
arch=(x86_64)
license=(GPL2)
depends=(dconf gtk3 libgcrypt p11-kit)
makedepends=(intltool gobject-introspection python3 vala libxslt gnome-common git gtk-doc)
checkdepends=(python2)
_commit=4708f3562ddf28bf51eb70b9cff548b217370639 # master
source=("git+https://git.gnome.org/browse/gcr#commit=$_commit"
10-gcr.conf)
sha256sums=('SKIP'
'1230351a1da53a9c2bada81c44f5a5113e5457552196eccb7b1413dcf4f661b5')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
mkdir path
ln -s /usr/bin/python2 path/python
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./configure --prefix=/usr \
--libexecdir=/usr/lib/gcr \
--enable-gtk-doc \
--disable-static \
--disable-update-mime \
--disable-schemas-compile
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname
PATH="$srcdir/path:$PATH" dbus-run-session make -k check || :
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
# gcr wants to lock some memory to prevent swapping out private keys
# https://bugs.archlinux.org/task/32616
# https://bugzilla.gnome.org/show_bug.cgi?id=688161
install -Dm644 ../10-gcr.conf "$pkgdir/etc/security/limits.d/10-gcr.conf"
}

41
gnome-keyring/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
# Contributions from ArchLinux: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/gnome-keyring
pkgname=gnome-keyring
pkgver=3.20.0+57+g9db67ef
pkgrel=1
pkgdesc="Stores passwords and encryption keys"
url="https://wiki.gnome.org/Projects/GnomeKeyring"
arch=(x86_64)
license=(GPL LGPL)
depends=(gcr libcap-ng pam)
makedepends=(intltool gtk-doc gnome-common git python3)
install=gnome-keyring.install
_commit=9db67ef6e39ac51d426dee91da3b9305670241e6 # master
source=("git+https://git.gnome.org/browse/gnome-keyring#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "$pkgname"
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --disable-static \
--libexecdir=/usr/lib/gnome-keyring \
--with-pam-dir=/usr/lib/security --with-root-certs=/etc/ssl/certs \
--disable-schemas-compile
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
}

View File

@ -0,0 +1,7 @@
post_install() {
setcap cap_ipc_lock=ep usr/bin/gnome-keyring-daemon
}
post_upgrade() {
post_install
}

View File

@ -1,13 +1,16 @@
# Contributions from ArchLinux: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/inkscape
pkgname=inkscape
pkgver=0.92.1
pkgrel=1
pkgrel=3
pkgdesc='Vector graphics editor using the SVG file format'
url='https://inkscape.org/'
url='http://inkscape.sourceforge.net/'
license=('GPL' 'LGPL')
arch=('x86_64')
makedepends=('boost' 'intltool')
depends=('gc' 'gsl' 'gtkmm' 'gtkspell' 'imagemagick' 'libxslt' 'poppler' 'poppler-glib' 'popt'
'python2' 'desktop-file-utils' 'hicolor-icon-theme' 'fftw' 'libwpg' 'libvisio' 'potrace')
depends=('gc' 'gsl' 'gtkmm' 'gtkspell' 'imagemagick' 'libxslt' 'poppler-glib'
'popt' 'potrace' 'ttf-dejavu' 'python2' 'desktop-file-utils'
'hicolor-icon-theme')
optdepends=('pstoedit: latex formulas'
'texlive-core: latex formulas'
'python2-numpy: some extensions'
@ -15,12 +18,10 @@ optdepends=('pstoedit: latex formulas'
'pyxml: some extensions'
'uniconvertor: reading/writing to some proprietary formats')
source=("https://inkscape.global.ssl.fastly.net/media/resources/file/$pkgname-$pkgver.tar.bz2")
sha1sums=('bede1252b344dc08abb6736084364d8125a6dffc')
install=install
sha256sums=('257405bf802de125f17d123638093a37db02ebe334d243cf9b0d8903f7c89005')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
./autogen.sh
sed -i 's|/usr/bin/python\>|/usr/bin/python2|g' cxxtest/*.py
@ -38,6 +39,7 @@ build() {
--with-perl \
--enable-lcms \
--enable-poppler-cairo \
--disable-strict-build \
--disable-dependency-tracking
make
}