Last active
April 25, 2020 00:28
-
-
Save AntiCompositeNumber/0cfc97a22c1c0b0131e4d47726d01296 to your computer and use it in GitHub Desktop.
huggle-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | |
index b7530e8f..4316a369 100644 | |
--- a/src/CMakeLists.txt | |
+++ b/src/CMakeLists.txt | |
@@ -122,7 +122,7 @@ install(FILES ${CMAKE_SOURCE_DIR}/huggle_res/Resources/huggle3_newlogo.png DESTI | |
if (LINUX_SNAP) | |
install(DIRECTORY scripts/ DESTINATION bin/extensions FILES_MATCHING PATTERN "*.js") | |
else() | |
- install(DIRECTORY scripts/ DESTINATION share/huggle/extensions FILES_MATCHING PATTERN "*.js") | |
+ install(DIRECTORY scripts/ DESTINATION lib/huggle/extensions FILES_MATCHING PATTERN "*.js") | |
endif() | |
include(CPack) | |
Submodule src/extensions/enwiki contains modified content | |
diff --git a/src/extensions/enwiki/CMakeLists.txt b/src/extensions/enwiki/CMakeLists.txt | |
index cbe5cce..396e013 100644 | |
--- a/src/extensions/enwiki/CMakeLists.txt | |
+++ b/src/extensions/enwiki/CMakeLists.txt | |
@@ -60,5 +60,5 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | |
if (LINUX_SNAP) | |
INSTALL(TARGETS huggle_en DESTINATION bin/extensions) | |
else() | |
- INSTALL(TARGETS huggle_en DESTINATION share/huggle/extensions) | |
+ INSTALL(TARGETS huggle_en DESTINATION lib/huggle/extensions) | |
endif() | |
Submodule src/extensions/extension-flow contains modified content | |
diff --git a/src/extensions/extension-flow/CMakeLists.txt b/src/extensions/extension-flow/CMakeLists.txt | |
index 3744d6b..9a7ae91 100644 | |
--- a/src/extensions/extension-flow/CMakeLists.txt | |
+++ b/src/extensions/extension-flow/CMakeLists.txt | |
@@ -54,6 +54,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | |
if (LINUX_SNAP) | |
INSTALL(TARGETS huggle_flow DESTINATION bin/extensions) | |
else() | |
- INSTALL(TARGETS huggle_flow DESTINATION share/huggle/extensions) | |
+ INSTALL(TARGETS huggle_flow DESTINATION lib/huggle/extensions) | |
endif() | |
Submodule src/extensions/extension-mass-delete contains modified content | |
diff --git a/src/extensions/extension-mass-delete/CMakeLists.txt b/src/extensions/extension-mass-delete/CMakeLists.txt | |
index 05fec89..400c28e 100644 | |
--- a/src/extensions/extension-mass-delete/CMakeLists.txt | |
+++ b/src/extensions/extension-mass-delete/CMakeLists.txt | |
@@ -56,5 +56,5 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | |
if (LINUX_SNAP) | |
INSTALL(TARGETS huggle_nuke DESTINATION bin/extensions) | |
else() | |
- INSTALL(TARGETS huggle_nuke DESTINATION share/huggle/extensions) | |
+ INSTALL(TARGETS huggle_nuke DESTINATION lib/huggle/extensions) | |
endif() | |
Submodule src/extensions/extension-scoring contains modified content | |
diff --git a/src/extensions/extension-scoring/CMakeLists.txt b/src/extensions/extension-scoring/CMakeLists.txt | |
index f459515..af4a7e9 100644 | |
--- a/src/extensions/extension-scoring/CMakeLists.txt | |
+++ b/src/extensions/extension-scoring/CMakeLists.txt | |
@@ -76,5 +76,5 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | |
if (LINUX_SNAP) | |
INSTALL(TARGETS huggle_scoring DESTINATION bin/extensions) | |
else() | |
- INSTALL(TARGETS huggle_scoring DESTINATION share/huggle/extensions) | |
+ INSTALL(TARGETS huggle_scoring DESTINATION lib/huggle/extensions) | |
endif() | |
Submodule src/extensions/extension-splitter-helper contains modified content | |
diff --git a/src/extensions/extension-splitter-helper/CMakeLists.txt b/src/extensions/extension-splitter-helper/CMakeLists.txt | |
index d56f8a5..9fcdf82 100644 | |
--- a/src/extensions/extension-splitter-helper/CMakeLists.txt | |
+++ b/src/extensions/extension-splitter-helper/CMakeLists.txt | |
@@ -67,5 +67,5 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | |
if (LINUX_SNAP) | |
INSTALL(TARGETS huggle_sh DESTINATION bin/extensions) | |
else() | |
- INSTALL(TARGETS huggle_sh DESTINATION share/huggle/extensions) | |
+ INSTALL(TARGETS huggle_sh DESTINATION lib/huggle/extensions) | |
endif() | |
Submodule src/extensions/extension-thanks contains modified content | |
diff --git a/src/extensions/extension-thanks/CMakeLists.txt b/src/extensions/extension-thanks/CMakeLists.txt | |
index f4bfa1b..df38ff8 100644 | |
--- a/src/extensions/extension-thanks/CMakeLists.txt | |
+++ b/src/extensions/extension-thanks/CMakeLists.txt | |
@@ -67,6 +67,6 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | |
if (LINUX_SNAP) | |
INSTALL(TARGETS huggle_thanks DESTINATION bin/extensions) | |
else() | |
- INSTALL(TARGETS huggle_thanks DESTINATION share/huggle/extensions) | |
+ INSTALL(TARGETS huggle_thanks DESTINATION lib/huggle/extensions) | |
endif() | |
Submodule src/extensions/mass-delivery contains modified content | |
diff --git a/src/extensions/mass-delivery/CMakeLists.txt b/src/extensions/mass-delivery/CMakeLists.txt | |
index 29c52fa..bb6a2f4 100644 | |
--- a/src/extensions/mass-delivery/CMakeLists.txt | |
+++ b/src/extensions/mass-delivery/CMakeLists.txt | |
@@ -75,5 +75,5 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) | |
if (LINUX_SNAP) | |
INSTALL(TARGETS huggle_md DESTINATION bin/extensions) | |
else() | |
- INSTALL(TARGETS huggle_md DESTINATION share/huggle/extensions) | |
+ INSTALL(TARGETS huggle_md DESTINATION lib/huggle/extensions) | |
endif() | |
diff --git a/src/huggle_core/definitions_prod.hpp b/src/huggle_core/definitions_prod.hpp | |
index 3e1a4319..8d69cb3b 100644 | |
--- a/src/huggle_core/definitions_prod.hpp | |
+++ b/src/huggle_core/definitions_prod.hpp | |
@@ -216,7 +216,7 @@ namespace std { typedef decltype(nullptr) nullptr_t; } | |
#define HUGGLE_GLOBAL_EXTENSION_PATH QCoreApplication::applicationDirPath() + "/extensions" | |
#elif defined __linux__ | |
#define HUGGLE_UPDATER_PLATFORM_TYPE "linux" | |
- #define HUGGLE_GLOBAL_EXTENSION_PATH "/usr/local/share/huggle/extensions" | |
+ #define HUGGLE_GLOBAL_EXTENSION_PATH "/usr/lib/huggle/extensions" | |
#elif defined HUGGLE_WIN | |
// This is needed by yaml cpp library, otherwise it won't build with MSVC | |
#define YAML_CPP_DLL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Tanner Filip <tannerremovemefilip at gmail dot com> | |
# Contributor: AntiCompositeNumber <anticompositenumber+aur at gmail dot com> | |
# For contact, remove "removeme" and replace words with symbols as necessary. | |
pkgname=huggle-git | |
pkgver=3.4.10.r21.gbd74c5cd | |
pkgrel=1 | |
pkgdesc="Anti-vandalism tool for use on MediaWiki-based projects" | |
arch=('i686' 'x86_64') | |
url="https://en.wikipedia.org/wiki/Wikipedia:Huggle" | |
license=('GPL') | |
depends=('qt5-multimedia' 'qt5-webengine' 'yaml-cpp') | |
makedepends=('cmake' 'git') | |
provides=('huggle') | |
conflicts=('huggle') | |
source=( | |
"${pkgname}::git+https://github.com/huggle/huggle3-qt-lx.git" | |
"git+https://github.com/grumpy-irc/libirc.git" | |
"git+https://github.com/huggle/mass-delivery.git" | |
"git+https://github.com/huggle/enwiki.git" | |
"git+https://github.com/huggle/extension-thanks.git" | |
"git+https://github.com/huggle/extension-splitter-helper.git" | |
"git+https://github.com/huggle/extension-review.git" | |
"git+https://github.com/huggle/extension-mass-delete.git" | |
"git+https://github.com/huggle/extension-scoring.git" | |
"git+https://github.com/huggle/extension-flow" | |
"extensions.patch" | |
) | |
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' | |
'53f138bca0e4e67376a152c9ba290e3fde19c12ab58e0c7b581460e8ede5ce8c') | |
prepare() { | |
cd "${pkgname}" | |
git submodule init src/extensions | |
git submodule init src/3rd/libirc | |
git config submodule.src/3rd/libirc.url "${srcdir}/libirc" | |
git config submodule.src/extensions/mass-delivery.url "${srcdir}/mass-delivery" | |
git config submodule.src/extensions/enwiki.url "${srcdir}/enwiki" | |
git config submodule.src/extensions/extension-thanks.url "${srcdir}/extension-thanks" | |
git config submodule.src/extensions/extension-splitter-helper.url \ | |
"${srcdir}/extension-splitter-helper" | |
git config submodule.src/extensions/extension-review.url "${srcdir}/extension-review" | |
git config submodule.src/extensions/extension-mass-delete.url \ | |
"${srcdir}/extension-mass-delete" | |
git config submodule.src/extensions/extension-scoring.url "${srcdir}/extension-scoring" | |
git config submodule.src/extensions/extension-flow.url "${srcdir}/extension-flow" | |
git submodule update | |
git submodule foreach 'git reset --hard' | |
patch --forward --strip=1 --input="../extensions.patch" | |
cd "src/huggle_core" | |
./update.sh | |
} | |
pkgver() { | |
cd "${pkgname}" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
export CFLAGS+=" ${CPPFLAGS}" | |
export CXXFLAGS+=" ${CPPFLAGS}" | |
cmake -B build \ | |
-S "${pkgname}/src" \ | |
-DCMAKE_BUILD_TYPE=None \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DINSTALL_DATA_DIR="lib/huggle" \ | |
-DQT5_BUILD=ON \ | |
-DWEB_ENGINE=ON \ | |
-DBUILD_SHARED_LIBS=OFF \ | |
-DHUGGLE_EXT=TRUE \ | |
-Wno-dev \ | |
make -C build | |
} | |
package() { | |
make DESTDIR="$pkgdir/" -C build install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment