Skip to content
Snippets Groups Projects
Commit fd018fa2 authored by Luca Weiss's avatar Luca Weiss Committed by alice
Browse files

testing/ayatana-indicator-printers: new aport

parent 4ecb10d0
No related branches found
No related tags found
1 merge request!29589testing/ayatana-indicator-*: new aport
Patch-Source: https://github.com/AyatanaIndicators/ayatana-indicator-printers/commit/b4e36f43ec5ef68b05679a21c3a67ccc811034eb
From b4e36f43ec5ef68b05679a21c3a67ccc811034eb Mon Sep 17 00:00:00 2001
From: Luca Weiss <luca@z3ntu.xyz>
Date: Tue, 7 Dec 2021 21:47:00 +0100
Subject: [PATCH] Remove bash-ism from configure.ac
The += operator is not available e.g. in busybox ash. Instead of trying
to extend CUPS_CFLAGS and _LIBS, we can just set them as nothing sets
them beforehand.
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0986f8c..8919cfd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,8 +50,8 @@ if test "x$CUPS_CONFIG" = "xno"; then
AC_MSG_ERROR([could not find cups-config])
fi
AC_CHECK_HEADER(cups/cups.h,,AC_MSG_ERROR([could not find cups.h]))
-CUPS_CFLAGS+=`$CUPS_CONFIG --cflags`
-CUPS_LIBS+=`$CUPS_CONFIG --libs`
+CUPS_CFLAGS=`$CUPS_CONFIG --cflags`
+CUPS_LIBS=`$CUPS_CONFIG --libs`
SERVICE_CFLAGS="$SERVICE_CFLAGS $CUPS_CFLAGS"
SERVICE_LIBS="$SERVICE_LIBS $CUPS_LIBS"
--
2.34.1
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=ayatana-indicator-printers
pkgver=0.9.0
pkgrel=0
pkgdesc="Ayatana Indicator Printers Applet"
url="https://github.com/AyatanaIndicators/ayatana-indicator-printers"
arch="all"
license="GPL-3.0-only"
makedepends="
autoconf
automake
cups-dev
glib-dev
gtk+3.0-dev
intltool
libayatana-indicator-dev
libdbusmenu-gtk3-dev
libtool
mate-common
"
subpackages="$pkgname-lang"
source="https://github.com/AyatanaIndicators/ayatana-indicator-printers/archive/$pkgver/ayatana-indicator-printers-$pkgver.tar.gz
0001-Remove-bash-ism-from-configure.ac.patch
"
options="!check" # no clear way to run tests
prepare() {
default_prepare
NOCONFIGURE=1 ./autogen.sh
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
package() {
make DESTDIR="$pkgdir" install
# Remove static library
rm "$pkgdir"/usr/lib/ayatana-indicators3/7/libayatana-printersmenu.a
}
sha512sums="
b5c02f9c1afb465086963ca487dbc5f8688e7b5a499f7685a354577d9e139df52b086e0c006e9cd2a5085df7e2dd385b7ccc42eb942ebb640627f17cefb97f9b ayatana-indicator-printers-0.9.0.tar.gz
e65dc339bbda519a61d2125da77713ca8be2e6503a3abd89dcc69e61fd053a0440a67f4e6bb98eb2787a3f2b85b19b4643a5281698a53a4148d5a291d5818188 0001-Remove-bash-ism-from-configure.ac.patch
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment