void-packages/srcpkgs/linssid/patches/project.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

33 lines
885 B
Diff

--- a/linssid-app/linssid-app.pro
+++ b/linssid-app/linssid-app.pro
@@ -5,7 +5,7 @@
CONFIG -= debug_and_release app_bundle lib_bundle
-CONFIG += release
+CONFIG += release qwt
PKGCONFIG +=
-QT = core gui widgets svg
+QT = core gui widgets
SOURCES += AboutBox.cpp Getter.cpp MainForm.cpp main.cpp prefsDialog.cpp
HEADERS += AboutBox.h Custom.h Getter.h MainForm.h prefsDialog.h
FORMS += AboutBox.ui MainForm.ui prefsDialog.ui
@@ -15,18 +15,16 @@
MOC_DIR =
RCC_DIR =
UI_DIR =
-QMAKE_CC = gcc
-QMAKE_CXX = g++
DEFINES +=
INCLUDEPATH += /usr/include/boost
INCLUDEPATH += /usr/include/qt5
INCLUDEPATH += /usr/include/qwt
LIBS += -lboost_regex
-LIBS += /usr/lib/libqwt-qt5.so.6
+LIBS += -lqwt
QMAKE_CXXFLAGS += -std=c++11
#
TARGET = linssid
-target.path = /usr/sbin
+target.path = /usr/bin
INSTALLS += target
targetexec.path = /usr/bin
targetexec.files=linssid-pkexec