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
  • alistair23/pmaports
  • exkc/pmaports
  • fossdd/pmaports
  • JustSoup321/pmaports
  • Eisenbahnfan/pmaports
  • raihan2000/pmaports
  • sleirsgoevy/pmaports
  • Adrian/pmaports
  • adamthiede/pmaports
  • jianhua/pmaports
  • knuxify/pmaports
  • Arnavion/pmaports
  • barni2000/pmaports
  • longnoserob/pmaports
  • smankusors/pmaports
  • Aren/pmaports
  • langfingaz/pmaports
  • sicelo/pmaports
  • kouta-kun/pmaports
  • craftyguy/pmaports
  • rdacayan/pmaports
  • rmader/pmaports
  • Haui111/pmaports
  • jakko/pmaports
  • dujem/pmaports
  • methanal/pmaports
  • WeirdTreeThing/pmaports
  • MightyM17/pmaports
  • sertonix/pmaports
  • amessier/pmaports
  • akemnade/pmaports
  • setotau/pmaports
  • kevinwidjaja21/pmaports
  • NekoCWD/pmaports
  • ollieparanoid/pmaports
  • manoedinata/pmaports
  • Drakulix/pmaports
  • grimler/pmaports
  • benpicco/pmaports
  • Frieder.Hannenheim/pmaports
  • andrisas/pmaports
  • EspiDev/pmaports
  • maze42/pmaports
  • anjandev/pmaports
  • danct12/pmaports
  • ijiki16/pmaports
  • jja2000/pmaports
  • fancsali/pmaports
  • bolilingmeng89006/pmaports
  • Minecrell/pmaports
  • chipiguay/pmaports
  • cherrypicker/pmaports
  • fortuna-mainline/pmaports
  • pevik/pmaports
  • Patriot-06/pmaports
  • JoseskVolpe/pmaports
  • verdre/pmaports
  • proycon/pmaports
  • AutumnSpark1226/pmaports
  • PsychoGame/pmaports
  • fraolt/pmaports
  • VaporGame/pmaports
  • pugzarecute/pmaports
  • CalcProgrammer1/pmaports
  • hexaheximal/pmaports
  • dabao1955/pmaports
  • HenriDellal/pmaports
  • semfault/pmaports
  • strobo5/pmaports
  • andrewgigena/pmaports
  • Athozus/pmaports
  • 1peter10/pmaports
  • vixalien/pmaports
  • Tooniis/pmaports
  • adomerle/pmaports
  • bjorn3/pmaports
  • StacyHarper/pmaports
  • Jack_Kekzoz/pmaports
  • Ceddicedced/pmaports
  • Justin_Zobel/pmaports
  • airtower-luna/pmaports
  • f-izzo/pmaports
  • cosmo/pmaports
  • 9lore/pmaports
  • postmarketOS/pmaports
  • Johnnynator/pmaports
  • iAboothahir/pmaports
  • N1kroks/pmaports
  • neuschaefer/pmaports
  • DylanVanAssche/pmaports
  • yehiashamaa987/pmaports
  • Operachi/pmaports
  • faveoled/pmaports
  • ilpianista/pmaports
  • johkra/pmaports
  • HDDTHR/pmaports
  • zsoltiv/pmaports
  • Justin/pmaports
  • Kaloyan501/pmaports_huawei_p8_lite_2015_fix
  • joelselvaraj/pmaports
  • rontti/pmaports
  • dsankouski/pmaports
  • StandaSK/pmaports
  • paricbat/pmaports
  • asdfugil/pmaports
  • komaru-yml/pmaports
  • MasterPlexus/pmaports
  • Felix/pmaports
  • ayakael/pmaports
  • feisuzhu/pmaports
  • AJ-RR/pmaports
  • SzczurekYT/pmaports
  • mediaberry/pmaports
  • justsomeguy/pmaports
  • Augis154/pmaports
  • hrdl/pmaports
  • sib0ndt/pmaports
  • 19atlas/pmaports
  • vipaoL/pmaports
  • wannjanjic/pmaports
  • dh/pmaports
  • LogicalErzor/pmaports
  • halamix2/pmaports
  • Shamilkv34/pmaports
  • Cogitri/pmaports
  • fallenritemonk/pmaports
  • user0-07161/pmaports
  • rock3tsprocket/pmaports
  • ellyq/pmaports
  • rodent/pmaports
  • mkorpershoek/pmaports
  • candrew/pmaports
  • fallaciousreasoning/pmaports
  • chalkin/pmaports
  • ungeskriptet/pmaports
  • r00t/pmaports
  • panpanpanpan/pmaports
  • celiffe/pmaports
  • davidfurey/pmaports
  • kidd/pmaports
  • tpikonen/pmaports
  • camelCaseNick/pmaports
  • ermine/pmaports
  • lgh/pmaports
  • sajattack/pmaports
  • StephanieBread/pmaports
  • M0Rf30/pmaports
  • notfound405/pmaports
  • samueldr/pmaports
  • r10nw7fd3/pmaports
  • treid998/pmaports-merge
  • denysvitali/pmaports
  • rodriguezst/pmaports
  • puppiestdoggo1/pmaports
  • donihalim/pmaports
  • EDKPiepaint/pmaports-apple-tonga-test
  • SanyaPilot/pmaports
157 results
Show changes
Showing
with 1149 additions and 271 deletions
From 6039e31d753fa6dd88572ce5aa28a71a0199ab0b Mon Sep 17 00:00:00 2001
From: Luca Weiss <luca@z3ntu.xyz>
Date: Fri, 27 Mar 2020 18:01:53 +0100
Subject: [PATCH] Revert "Consider Reservation::reservationStatus"
This reverts commit 85adf9354c1497d5b49b72e25123792138de5689.
---
.../data/timeline/flight-cancelation.json | 35 --------
.../data/timeline/flight-cancelation.model | 86 -------------------
autotests/statisticstest.cpp | 1 -
autotests/timelinedelegatecontrollertest.cpp | 17 ----
src/app/TimelineDelegate.qml | 8 +-
src/app/statisticsmodel.cpp | 5 --
src/app/timelinedelegatecontroller.cpp | 13 ---
src/app/timelinedelegatecontroller.h | 4 -
src/app/timelinemodel.cpp | 24 ++----
9 files changed, 7 insertions(+), 186 deletions(-)
delete mode 100644 autotests/data/timeline/flight-cancelation.json
delete mode 100644 autotests/data/timeline/flight-cancelation.model
diff --git a/autotests/data/timeline/flight-cancelation.json b/autotests/data/timeline/flight-cancelation.json
deleted file mode 100644
index db8017b..0000000
--- a/autotests/data/timeline/flight-cancelation.json
+++ /dev/null
@@ -1,35 +0,0 @@
-[{
- "internal-comment": "sample from https://developers.google.com/gmail/markup/reference/flight-reservation#cancel_a_flight",
- "@context": "http://schema.org",
- "@type": "FlightReservation",
- "reservationNumber": "RXJ34P",
- "reservationStatus": "http://schema.org/Cancelled",
- "underName": {
- "@type": "Person",
- "name": "Eva Green"
- },
- "reservationFor": {
- "@type": "Flight",
- "flightNumber": "110",
- "airline": {
- "@type": "Airline",
- "name": "United",
- "iataCode": "UA"
- },
- "departureAirport": {
- "@type": "Airport",
- "name": "San Francisco Airport",
- "iataCode": "SFO"
- },
- "departureTime": "1996-10-16T20:15:00-07:00",
- "arrivalAirport": {
- "@type": "Airport",
- "name": "John F. Kennedy International Airport",
- "iataCode": "JFK"
- },
- "arrivalTime": "1996-10-16T06:30:00-04:00"
- },
- "checkinUrl": "http://united.com/onlinecheckin.html",
- "modifiedTime": "1996-05-01T08:30:00-08:00",
- "modifyReservationUrl": "http://united.com/modifyreservation.html"
-}]
diff --git a/autotests/data/timeline/flight-cancelation.model b/autotests/data/timeline/flight-cancelation.model
deleted file mode 100644
index 59f8462..0000000
--- a/autotests/data/timeline/flight-cancelation.model
+++ /dev/null
@@ -1,86 +0,0 @@
-[
- {
- "isToday": true,
- "isTodayEmpty": true,
- "rangeType": 0,
- "sectionHeader": "Today",
- "type": 1
- },
- {
- "isToday": false,
- "rangeType": 0,
- "reservations": [
- {
- "@context": "http://schema.org",
- "@type": "FlightReservation",
- "modifiedTime": "1996-05-01T08:30:00-08:00",
- "potentialAction": [
- {
- "@type": "CheckInAction",
- "target": "http://united.com/onlinecheckin.html"
- },
- {
- "@type": "UpdateAction",
- "target": "http://united.com/modifyreservation.html"
- }
- ],
- "reservationFor": {
- "@type": "Flight",
- "airline": {
- "@type": "Airline",
- "iataCode": "UA",
- "name": "United"
- },
- "arrivalAirport": {
- "@type": "Airport",
- "address": {
- "@type": "PostalAddress",
- "addressCountry": "US"
- },
- "geo": {
- "@type": "GeoCoordinates",
- "latitude": 40.63970184326172,
- "longitude": -73.77890014648438
- },
- "iataCode": "JFK",
- "name": "John F. Kennedy International Airport"
- },
- "arrivalTime": {
- "@type": "QDateTime",
- "@value": "1996-10-17T06:30:00-04:00",
- "timezone": "America/New_York"
- },
- "departureAirport": {
- "@type": "Airport",
- "address": {
- "@type": "PostalAddress",
- "addressCountry": "US"
- },
- "geo": {
- "@type": "GeoCoordinates",
- "latitude": 37.618900299072266,
- "longitude": -122.375
- },
- "iataCode": "SFO",
- "name": "San Francisco Airport"
- },
- "departureDay": "1996-10-16",
- "departureTime": {
- "@type": "QDateTime",
- "@value": "1996-10-16T20:15:00-07:00",
- "timezone": "America/Los_Angeles"
- },
- "flightNumber": "110"
- },
- "reservationNumber": "RXJ34P",
- "reservationStatus": "http://schema.org/ReservationCancelled",
- "underName": {
- "@type": "Person",
- "name": "Eva Green"
- }
- }
- ],
- "sectionHeader": "Wednesday, 10/16/96",
- "type": 6
- }
-]
diff --git a/autotests/statisticstest.cpp b/autotests/statisticstest.cpp
index 87dc586..159ed7f 100644
--- a/autotests/statisticstest.cpp
+++ b/autotests/statisticstest.cpp
@@ -72,7 +72,6 @@ private Q_SLOTS:
resMgr.importReservation(readFile(QLatin1String(SOURCE_DIR "/../tests/randa2017.json")));
resMgr.importReservation(readFile(QLatin1String(SOURCE_DIR "/../tests/akademy2017.json")));
resMgr.importReservation(readFile(QLatin1String(SOURCE_DIR "/../tests/akademy2018-program.json")));
- resMgr.importReservation(readFile(QLatin1String(SOURCE_DIR "/data/flight-cancelation.json"))); // canceled flight, should not change stats
stats.setTimeRange({}, {});
QVERIFY(!changeSpy.isEmpty());
diff --git a/autotests/timelinedelegatecontrollertest.cpp b/autotests/timelinedelegatecontrollertest.cpp
index 3716a3d..7c91378 100644
--- a/autotests/timelinedelegatecontrollertest.cpp
+++ b/autotests/timelinedelegatecontrollertest.cpp
@@ -69,7 +69,6 @@ private Q_SLOTS:
QCOMPARE(controller.isLocationChange(), false);
QCOMPARE(controller.isPublicTransport(), false);
QVERIFY(!controller.journeyRequest().isValid());
- QCOMPARE(controller.isCanceled(), false);
controller.setBatchId(QStringLiteral("foo"));
QCOMPARE(controller.isCurrent(), false);
@@ -77,7 +76,6 @@ private Q_SLOTS:
QCOMPARE(controller.effectiveEndTime(), QDateTime());
QCOMPARE(controller.isLocationChange(), false);
QCOMPARE(controller.isPublicTransport(), false);
- QCOMPARE(controller.isCanceled(), false);
ReservationManager mgr;
controller.setReservationManager(&mgr);
@@ -86,7 +84,6 @@ private Q_SLOTS:
QCOMPARE(controller.effectiveEndTime(), QDateTime());
QCOMPARE(controller.isLocationChange(), false);
QCOMPARE(controller.isPublicTransport(), false);
- QCOMPARE(controller.isCanceled(), false);
}
void testProgress()
@@ -114,7 +111,6 @@ private Q_SLOTS:
QCOMPARE(controller.progress(), 0.0f);
QCOMPARE(controller.isLocationChange(), true);
QCOMPARE(controller.isPublicTransport(), true);
- QCOMPARE(controller.isCanceled(), false);
trip.setArrivalTime(QDateTime::currentDateTime().addDays(1));
res.setReservationFor(trip);
@@ -232,19 +228,6 @@ private Q_SLOTS:
QCOMPARE(updateSpy.size(), 0);
QCOMPARE(rmSpy.size(), 3);
}
-
- void testCancel()
- {
- ReservationManager mgr;
- clearReservations(&mgr);
- mgr.importReservation(readFile(QLatin1String(SOURCE_DIR "/data/timeline/flight-cancelation.json")));
-
- TimelineDelegateController controller;
- controller.setReservationManager(&mgr);
- controller.setBatchId(mgr.batches().at(0));
- QCOMPARE(controller.isCanceled(), true);
- QCOMPARE(controller.connectionWarning(), false);
- }
};
QTEST_GUILESS_MAIN(TimelineDelegateControllerTest)
diff --git a/src/app/TimelineDelegate.qml b/src/app/TimelineDelegate.qml
index 9d782be..d138822 100644
--- a/src/app/TimelineDelegate.qml
+++ b/src/app/TimelineDelegate.qml
@@ -55,13 +55,7 @@ Kirigami.AbstractCard {
id: headerBackground
Kirigami.Theme.colorSet: controller.isCurrent ? Kirigami.Theme.Selection : Kirigami.Theme.Complementary
Kirigami.Theme.inherit: false
- color: {
- if (controller.connectionWarning)
- return Kirigami.Theme.negativeTextColor;
- if (controller.isCanceled)
- return Kirigami.Theme.disabledTextColor;
- return Kirigami.Theme.backgroundColor;
- }
+ color: controller.connectionWarning ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.backgroundColor
implicitHeight: headerLayout.implicitHeight + Kirigami.Units.largeSpacing * 2
anchors.leftMargin: -root.leftPadding
anchors.topMargin: -root.topPadding
diff --git a/src/app/statisticsmodel.cpp b/src/app/statisticsmodel.cpp
index 00baa55..70adfd4 100644
--- a/src/app/statisticsmodel.cpp
+++ b/src/app/statisticsmodel.cpp
@@ -283,11 +283,6 @@ void StatisticsModel::recompute()
isPrev = dt.date() < m_begin;
}
- // don't count canceled reservations
- if (JsonLd::canConvert<Reservation>(res) && JsonLd::convert<Reservation>(res).reservationStatus() == Reservation::ReservationCancelled) {
- continue;
- }
-
if (LocationUtil::isLocationChange(res)) {
computeStats(res, isPrev ? m_prevStatData : m_statData);
} else if (JsonLd::isA<LodgingReservation>(res)) {
diff --git a/src/app/timelinedelegatecontroller.cpp b/src/app/timelinedelegatecontroller.cpp
index 6d1fe31..01f6fc4 100644
--- a/src/app/timelinedelegatecontroller.cpp
+++ b/src/app/timelinedelegatecontroller.cpp
@@ -504,17 +504,4 @@ bool TimelineDelegateController::connectionWarning() const
return curDepDt < prevArrDt;
}
-bool TimelineDelegateController::isCanceled() const
-{
- if (!m_resMgr || m_batchId.isEmpty()) {
- return false;
- }
-
- const auto res = m_resMgr->reservation(m_batchId);
- if (!JsonLd::canConvert<Reservation>(res)) {
- return false;
- }
- return JsonLd::convert<Reservation>(res).reservationStatus() == Reservation::ReservationCancelled;
-}
-
#include "moc_timelinedelegatecontroller.cpp"
diff --git a/src/app/timelinedelegatecontroller.h b/src/app/timelinedelegatecontroller.h
index 85ace1b..976cdde 100644
--- a/src/app/timelinedelegatecontroller.h
+++ b/src/app/timelinedelegatecontroller.h
@@ -71,9 +71,6 @@ class TimelineDelegateController : public QObject
/** Inbound connection is unlikely to work. */
Q_PROPERTY(bool connectionWarning READ connectionWarning NOTIFY connectionWarningChanged)
- /** Reservation has been canceled (by user or provider, we usually don't know which). */
- Q_PROPERTY(bool isCanceled READ isCanceled NOTIFY contentChanged)
-
public:
TimelineDelegateController(QObject *parent = nullptr);
~TimelineDelegateController();
@@ -103,7 +100,6 @@ public:
Q_INVOKABLE void applyJourney(const QVariant &journey);
bool connectionWarning() const;
- bool isCanceled() const;
Q_SIGNALS:
void setupChanged();
diff --git a/src/app/timelinemodel.cpp b/src/app/timelinemodel.cpp
index 5a88ffb..30b6974 100644
--- a/src/app/timelinemodel.cpp
+++ b/src/app/timelinemodel.cpp
@@ -78,10 +78,6 @@ static GeoCoordinates geoCoordinate(const QVariant &res)
return LocationUtil::geo(LocationUtil::location(res));
}
-static bool isCanceled(const QVariant &res)
-{
- return JsonLd::canConvert<Reservation>(res) && JsonLd::convert<Reservation>(res).reservationStatus() == Reservation::ReservationCancelled;
-}
TimelineModel::TimelineModel(QObject *parent)
: QAbstractListModel(parent)
@@ -474,10 +470,6 @@ void TimelineModel::updateInformationElements()
continue;
}
const auto res = m_resMgr->reservation((*it).batchId());
- if (isCanceled(res)) {
- ++it;
- continue;
- }
auto newCountry = homeCountry;
newCountry.setIsoCode(LocationHelper::destinationCountry(res));
@@ -525,11 +517,9 @@ void TimelineModel::updateWeatherElements()
continue;
}
const auto res = m_resMgr->reservation((*it).batchId());
- if (!isCanceled(res)) {
- const auto newGeo = geoCoordinate(res);
- if (LocationUtil::isLocationChange(res) || newGeo.isValid()) {
- geo = newGeo;
- }
+ const auto newGeo = geoCoordinate(res);
+ if (LocationUtil::isLocationChange(res) || newGeo.isValid()) {
+ geo = newGeo;
}
++it;
@@ -558,11 +548,9 @@ void TimelineModel::updateWeatherElements()
continue;
}
const auto res = m_resMgr->reservation((*it).batchId());
- if (!isCanceled(res)) {
- const auto newGeo = geoCoordinate(res);
- if (LocationUtil::isLocationChange(res) || newGeo.isValid()) {
- geo = newGeo;
- }
+ const auto newGeo = geoCoordinate(res);
+ if (LocationUtil::isLocationChange(res) || newGeo.isValid()) {
+ geo = newGeo;
}
++it;
--
2.26.0
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=itinerary
pkgver=0_git20191214
_commit="63caaf2daae0a105982ee774de9a3797aae3ad33"
pkgrel=2
pkgver=0_git20200325
_commit="54303b62bf6f4ec0cf1ccc2967364f96104bc68a"
pkgrel=0
pkgdesc="Application to assist with usage of Travel Reservations"
url="https://github.com/KDE/itinerary"
arch="all !armhf"
......@@ -11,35 +11,28 @@ license="LGPL-2.0-or-later"
depends="prison"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtquickcontrols2-dev
qt5-qtlocation-dev ki18n-dev kcontacts-dev kpkpass-dev kitinerary-dev
kpublictransport-dev kdbusaddons-dev solid-dev shared-mime-info"
kpublictransport-dev kdbusaddons-dev solid-dev shared-mime-info
kholidays-dev knotifications-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/KDE/itinerary/archive/$_commit.tar.gz
0001-Fix-build.patch
0001-Adapt-to-KPublicTransport-API-changes.patch"
0001-Revert-Consider-Reservation-reservationStatus.patch" # requires kitinerary v20.04.0
builddir="$srcdir/$pkgname-$_commit"
options="!check" # Tests fail
options="!check" # Tests require newest version of kitinerary
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
$CMAKE_CROSSOPTS
make
-DCMAKE_INSTALL_LIBDIR=lib
make -C build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" make -C build install
}
sha512sums="4d0ac75d96cfe9c996ea6b41472945d827d612fe817dff342dffbb22588753cf96d307c9132a693ab77a24819afcc4af1a35e1b59af9d406a758c7663132ebd2 itinerary-63caaf2daae0a105982ee774de9a3797aae3ad33.tar.gz
ac2eca31b0dc066ff174f6bdb612d5387e7d31bc31b5d0e28814be4932c69dbd9cec4975420757d5b70c14d9828ee4a7a175da4eae4124840fff26f68e0df20f 0001-Fix-build.patch
619bf1ef7c3eb2b9f8de717f291ba7aac8f038adea38b5ef0c2406d57aff6d850e57d7d720f993242ac2fd6bf8ceebf647996c32bda1105652560818e7387ff7 0001-Adapt-to-KPublicTransport-API-changes.patch"
sha512sums="563f9d2b6adae2c03a549cb83dbf2cef0baae8fdb1cc4310b6b90e73a25adcbbbf2ce98aaab5b9ff3658823c1b9370344f9f9c932338f8499093f747b5cbda8d itinerary-54303b62bf6f4ec0cf1ccc2967364f96104bc68a.tar.gz
1b28272addd954bbea2dc874dc0b2f4ade256da57115db3fa54a088d0367b32cab5b218c9eb273f5c8d9613e36a72be4437f9599067d932ef704e3504653335c 0001-Revert-Consider-Reservation-reservationStatus.patch"
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kpublictransport
pkgver=0_git20191219
pkgver=0_git20200327
pkgrel=0
_commit="7ad1322efc70dfa30839bb46e790fa524c4967b1"
_commit="5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d"
pkgdesc="Library to assist with accessing public transport timetables and other information"
arch="all !armhf"
url="https://github.com/kde/kpublictransport"
license="LGPL-2.0-or-later"
checkdepends="tzdata"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/kde/kpublictransport/archive/$_commit/kpublictransport-$_commit.tar.gz"
subpackages="$pkgname-dev"
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
make -C build
}
check() {
cd "$builddir"/build
# navitiaparsertest requires some not yet implemented functions
# departuretest, journeytest and mergeutiltest broken
CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(navitiaparser|departure|journey|mergeutil)test"
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
DESTDIR="$pkgdir" make -C build install
}
sha512sums="7a322b8930bcdff4acb33f00b5ec53bd5e72e930194769e7bce8269a02969a5b898c62b39b362b7f29fac43c4008c0f70a8979bb5917fe31f8889fe1c0a73175 kpublictransport-7ad1322efc70dfa30839bb46e790fa524c4967b1.tar.gz"
sha512sums="3b791bb04d12d000055a96384a61d7c61987aebf8e16be9e79b44ebd0b6339d337fea4afdb7f16c9773fb05fd91e7e3a2e4c278388393fb8ff6b43f6a769bf90 kpublictransport-5c6f65553d87e84ae5ebbf1c6aecdb96cb68ac6d.tar.gz"
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ktrip
pkgver=0_git20191219
pkgver=0_git20200327
pkgrel=0
_commit="07218461e85f1d9b5b177e78ea7d57fb0e95d9e0"
_commit="222467070c3d823d7acf5572b3e0b95be68392c3"
pkgdesc="A public transport assistant"
arch="all !armhf"
url="https://invent.kde.org/kde/ktrip"
license="GPL-2.0-only OR GPL-3.0-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev ki18n-dev kitemmodels-dev kconfig-dev kpublictransport-dev"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev ki18n-dev kitemmodels-dev kconfig-dev kcontacts-dev kpublictransport-dev"
source="$pkgname-$_commit.tar.gz::https://invent.kde.org/kde/ktrip/-/archive/$_commit/ktrip-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"
prepare() {
default_prepare
mkdir "$builddir"/build
}
build() {
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
make -C build
}
check() {
cd "$builddir"/build
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" make install
DESTDIR="$pkgdir" make -C build install
}
sha512sums="5caaaa312944fbdb2af151167a12d3a6f3c5d3ef93274e1d554b295841bd24fc8b9781705355910daafd9cb1bd4f5e1c31f6b087515f86c2ae2fcb8af0cd1af1 ktrip-07218461e85f1d9b5b177e78ea7d57fb0e95d9e0.tar.gz"
sha512sums="bd640bce67a365b03d754ffdbaa4e6e12b7a0a64467cc2dd9ccbb22035376c537e64f1f3780d4e6917a6104c0f0341c29266e00ae5030deb003ae8adbb548504 ktrip-222467070c3d823d7acf5572b3e0b95be68392c3.tar.gz"
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-dialer
pkgver=0_git20200320
pkgrel=0
_commit="00b39c359e26b5da5633a27155e03a25f652fb71"
pkgdesc="A dialer for Plasma Mobile"
arch="all !armhf"
url="https://invent.kde.org/kde/plasma-dialer"
license="GPL-2.0-or-later"
depends="kirigami2"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev ki18n-dev kpeople-dev kdbusaddons-dev knotifications-dev telepathy-qt-dev libphonenumber-dev"
source="$pkgname-$_commit.tar.gz::https://invent.kde.org/kde/plasma-dialer/-/archive/$_commit/plasma-dialer-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make -C build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir" make -C build install
}
sha512sums="b658eac04edadc8f00ced9e11490e4355ca93d4f6e15a0d1074f45015c6d113b467e549130869071077cc54015ebd0be6264ae1a43a58deac4bc4987376e5af5 plasma-dialer-00b39c359e26b5da5633a27155e03a25f652fb71.tar.gz"
# Contributor: Raatty <me@raatty.club>
# Maintainer: Raatty <me@raatty.club>
pkgname="lightdm-mobile-greeter"
pkgver=1
pkgrel=0
pkgdesc="A simple lightdm greeter for mobile"
url="https://raatty.club:3000/raatty/lightdm-mobile-greeter"
arch="noarch"
license="MIT"
depends="libhandy py3-gobject3 lightdm xorg-server python3"
source="$pkgname-$pkgver.tar.gz::https://raatty.club:3000/raatty/lightdm-mobile-greeter/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname"
options="!check" # No tests
package() {
DESTDIR="$pkgdir" PREFIX="/usr" make install
}
sha512sums="efdf20a11215f818fbc32407364c2cb50a8b927571f0432effa123f9e05bc2f919e954d418f545578634eedce0c154c7fbb96bd31b59406553a3c94cce8d8e32 lightdm-mobile-greeter-1.tar.gz"
......@@ -3,17 +3,17 @@ _config="config-$_flavor.$CARCH"
pkgname=linux-$_flavor
pkgver=5.4.0_rc6
pkgver=5.6.0_rc6
pkgrel=1
arch="armv7"
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
url="https://kernel.org/"
makedepends="dtbtool perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev openssl-dev file bison flex"
makedepends="dtbtool perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev openssl-dev file bison flex findutils"
options="!strip !check !tracedeps"
_commit="f5cb192a3e49fc69c2c1df8b684f954152a8a80c"
_commit="5e47680b0bbc71dbc093123790951cc81eb2b84e"
source="
linux-postmarketos-qcom-$_commit.tar.gz::https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/qcom/linux-postmarketos-qcom-$_commit.tar.gz
https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/$_commit/linux-postmarketos-$_commit.tar.gz
config-$_flavor.armv7
"
......@@ -32,7 +32,7 @@ esac
HOSTCC="${CC:-gcc}"
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
builddir="$srcdir/linux-postmarketos-qcom-$_commit"
builddir="$srcdir/linux-postmarketos-$_commit"
prepare() {
local _patch_failed=
......@@ -157,5 +157,5 @@ dev() {
"$subpkgdir"/lib/modules/$_abi_release/build
}
sha512sums="36c6b2fd37f5ae13937ab0d3900cc8ddee2c78f963d74198488264ce2b10916e8150b6fb9983fe3ef92ac5ffd6d3af290a027e51f4aa7fe9bb6677e11406de3d linux-postmarketos-qcom-f5cb192a3e49fc69c2c1df8b684f954152a8a80c.tar.gz
6e51ab9de1881718d4518d93c143f99bada46ce0a6d543296587483eab63d0cd2b52ca7f3a0b407ce1256006ce8231655c0b907aaf1bff05c18ef0ac0cbc29fb config-postmarketos-qcom-msm8974.armv7"
sha512sums="946ef7133dd980a969afd0cfbaae55652cb3ddff588511cd5396f8a9a997e7e36b18e93f197917b3a0ba4b6e73f069ee248f8b26dfcb6acdd0bd3a9e093b775e linux-postmarketos-5e47680b0bbc71dbc093123790951cc81eb2b84e.tar.gz
366dca7607624aab3079230d6be9018e08ca9f38a254500fae2279a9560e773a4446118a0a2c4c064feebf640a3f4e827cc8b40041649015c0e66089622a24fe config-postmarketos-qcom-msm8974.armv7"
......@@ -2,7 +2,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-plasma-mobile
pkgver=2
pkgrel=19
pkgrel=20
pkgdesc="(Wayland) Mobile variant of KDE Plasma (slow without hardware acceleration, allows only numeric passwords!)"
url="https://wiki.postmarketos.org/wiki/Plasma_Mobile"
arch="noarch !armhf" # Crashes on armhf due to https://gitlab.com/postmarketOS/pmaports/issues/75
......@@ -23,6 +23,7 @@ depends="
ofono-openrc
pix
plasma-angelfish
plasma-dialer
plasma-phonebook
plasma-camera
plasma-phone-components
......
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=umockdev
pkgver=0.14.1
pkgrel=0
pkgdesc="Record/mock hardware devices for bug reports and regression tests"
arch="all"
url="https://github.com/martinpitt/umockdev/"
license="LGPL-2.1-or-later"
depends_dev="eudev-dev libgudev-dev"
makedepends="$depends_dev autoconf automake libtool gtk-doc vala linux-headers bash"
source="$pkgname-$pkgver.tar.gz::https://github.com/martinpitt/umockdev/archive/$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
options="!check" # needs /dev/pts inside chroot
build() {
./autogen.sh \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-gtk-doc
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="371dba5f54369709fb19c20b1b999e594d51e10344dc9c3d91379ae3e2018e79e7bdce6ffc48e8d9ee2809d81f9f970a9db6f2ed7385282a943cd9e782e2af5c umockdev-0.14.1.tar.gz"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.