Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 4CEDB782303 for ; Sat, 7 Sep 2019 19:31:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 1E6D4265A9 for ; Sat, 7 Sep 2019 21:31:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Cw6Z8PviKiW; Sat, 7 Sep 2019 21:31:06 +0200 (CEST) From: Bart Ribbers DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1567884666; bh=KIdLaglKftAQb9uLGLPGm1IetUNVQ+JZB4TwsDRtQLA=; h=From:To:Cc:Subject:Date; b=XVmLvm7ivpzx9ifNRU+ftMqcmoTwGC6fGkhBR5wJJSzjr2+KeK22V5tnwHjxtPLIg 75qFyPVTA+i8bos+SQgYAqIGOZZhazimEAlkwg+7XoIOi2Xg/O/HR7Ux8zltCAiOGI MhK0GCrXSGqI4FQD/ni4jH/tTTdZhwSANUJgSUA8L4ekBOk4ZBHU+Y/O9A9D8gNPIH N45v1UzKhOsfjnKdQciMlOlxditcPQKXnGovam8Sj0zM6htQhd4j1XkyruEM7J71zZ NI+pbFLaBCMNMvzGidRpww9se9o05prOuGlpRLp5uHN5K8SvdWMxmcyJBd5XaWiehE hFzUknTJNdeeA== To: alpine-aports@lists.alpinelinux.org Cc: Bart Ribbers Subject: [PATCH] testing/nemo-qml-plugin-dbus: new aport Date: Sat, 7 Sep 2019 21:30:57 +0200 Message-Id: <20190907193057.16763-1-bribbers@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/nemo-qml-plugin-dbus/APKBUILD | 32 +++++++++++++++++++ .../nemo-qml-plugin-dbus/fix-makefile.patch | 28 ++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 testing/nemo-qml-plugin-dbus/APKBUILD create mode 100644 testing/nemo-qml-plugin-dbus/fix-makefile.patch diff --git a/testing/nemo-qml-plugin-dbus/APKBUILD b/testing/nemo-qml-plugin-dbus/APKBUILD new file mode 100644 index 0000000000..ab7022e6b6 --- /dev/null +++ b/testing/nemo-qml-plugin-dbus/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=nemo-qml-plugin-dbus +pkgver=2.1.21 +pkgrel=0 +pkgdesc="Nemo's QML plugin for DBus" +url="https://git.merproject.org/mer-core/nemo-qml-plugin-dbus" +arch="all" +license="BSD-3-Clause" +depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev" +makedepends="$depends_dev" +subpackages="$pkgname-dev" +source="https://git.merproject.org/mer-core/nemo-qml-plugin-dbus/-/archive/$pkgver/nemo-qml-plugin-dbus-$pkgver.tar.gz" +options="!check" # No tests + +build() { + qmake-qt5 + make +} + +check() { + make check +} + +package() { + INSTALL_ROOT="$pkgdir" make install + + # Remove installed tests + rm -r "$pkgdir"/opt +} + +sha512sums="1e6cd57d2008e708d0e63b20f8a357e0e21643bd9c6e3e7fe8acd464b225e736daa3ebb45e99b1593347059eb9bbcc5e38d4da71d12f367c968c905f227d0d68 nemo-qml-plugin-dbus-2.1.21.tar.gz" diff --git a/testing/nemo-qml-plugin-dbus/fix-makefile.patch b/testing/nemo-qml-plugin-dbus/fix-makefile.patch new file mode 100644 index 0000000000..9e52bedd89 --- /dev/null +++ b/testing/nemo-qml-plugin-dbus/fix-makefile.patch @@ -0,0 +1,28 @@ +diff --git a/Makefile b/Makefile +index 92522fb..fb2d3f5 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,11 +3,11 @@ + NAME = pure-maps + VERSION = 1.21.1 + RELEASE = $(NAME)-$(VERSION) +-DESTDIR = + PREFIX = /usr + EXEDIR = $(DESTDIR)$(PREFIX)/bin + EXE = $(EXEDIR)/$(NAME) + DATADIR = $(DESTDIR)$(PREFIX)/share/$(NAME) ++LANGDIR = $(DESTDIR)$(PREFIX)/share/locale + DESKTOPDIR = $(DESTDIR)$(PREFIX)/share/applications + ICONDIR = $(DESTDIR)$(PREFIX)/share/icons/hicolor + METADIR = $(DESTDIR)$(PREFIX)/share/metainfo +@@ -19,8 +19,8 @@ LCONVERT = $(or $(wildcard /usr/lib/qt5/bin/lconvert),\ + + define install-translation = + # GNU gettext translations for Python use. +- mkdir -p $(DATADIR)/locale/$(1)/LC_MESSAGES +- msgfmt po/$(1).po -o $(DATADIR)/locale/$(1)/LC_MESSAGES/pure-maps.mo ++ mkdir -p $(LANGDIR)/$(1)/LC_MESSAGES ++ msgfmt po/$(1).po -o $(LANGDIR)/$(1)/LC_MESSAGES/pure-maps.mo + # Qt linguist translations for QML use. + mkdir -p $(DATADIR)/translations + $(LCONVERT) -o $(DATADIR)/translations/$(NAME)-$(1).qm po/$(1).po -- 2.23.0