summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD13
-rw-r--r--build-pacman.patch37
3 files changed, 48 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 882395d2e40..62796c41993 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = codegrade-fs-electron
pkgdesc = Electron frontend for the CodeGrade filesystem
pkgver = 1.1.2
- pkgrel = 1
+ pkgrel = 2
url = https://codegrade.com
install = codegrade-fs-electron.install
arch = x86_64
@@ -10,23 +10,14 @@ pkgbase = codegrade-fs-electron
makedepends = npm
makedepends = python
depends = python-codegrade-fs
- depends = c-ares
- depends = ffmpeg
depends = gtk3
- depends = http-parser
- depends = libevent
- depends = libvpx
- depends = libxslt
depends = libxss
- depends = minizip
depends = nss
- depends = re2
- depends = snappy
depends = libnotify
- depends = libappindicator-gtk2
- depends = libappindicator-gtk3
source = codegrade-fs-electron-1.1.2::git+https://github.com/CodeGra-de/CodeGra.fs.git#commit=50d99b53fe6043382ed514377394f73d6335191f
+ source = build-pacman.patch
sha256sums = SKIP
+ sha256sums = efcb4ecdd9e849434c42374ae5c6376a7c72a79794b51209fc8148a842c7384e
pkgname = codegrade-fs-electron
diff --git a/PKGBUILD b/PKGBUILD
index 94fe1c9cd86..6d17c81ca59 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,26 @@
pkgname=codegrade-fs-electron
pkgver=1.1.2
-pkgrel=1
+pkgrel=2
pkgdesc="Electron frontend for the CodeGrade filesystem"
arch=('x86_64')
license=('AGPL3')
url="https://codegrade.com"
-depends=('python-codegrade-fs' 'c-ares' 'ffmpeg' 'gtk3' 'http-parser' 'libevent' 'libvpx' 'libxslt' 'libxss' 'minizip' 'nss' 're2' 'snappy' 'libnotify' 'libappindicator-gtk2' 'libappindicator-gtk3')
+depends=('python-codegrade-fs' 'gtk3' 'libxss' 'nss' 'libnotify')
makedepends=('git' 'npm' 'python')
-source=("$pkgname-$pkgver::git+https://github.com/CodeGra-de/CodeGra.fs.git#commit=50d99b53fe6043382ed514377394f73d6335191f")
-sha256sums=('SKIP')
+source=("$pkgname-$pkgver::git+https://github.com/CodeGra-de/CodeGra.fs.git#commit=50d99b53fe6043382ed514377394f73d6335191f"
+ build-pacman.patch)
+sha256sums=(
+ 'SKIP'
+ 'efcb4ecdd9e849434c42374ae5c6376a7c72a79794b51209fc8148a842c7384e')
install=codegrade-fs-electron.install
prepare() {
cd $pkgname-$pkgver
# Output Pacman archive instead of .deb
- sed -i '96s/deb/pacman/' package.json
+ patch -Np1 -i "${srcdir}/build-pacman.patch"
npm install
}
diff --git a/build-pacman.patch b/build-pacman.patch
new file mode 100644
index 00000000000..89191ebd40f
--- /dev/null
+++ b/build-pacman.patch
@@ -0,0 +1,37 @@
+diff --git a/package.json b/package.json
+index d587088..764bcad 100644
+--- a/package.json
++++ b/package.json
+@@ -93,7 +93,7 @@
+ },
+ "linux": {
+ "icon": "static/icons",
+- "target": "deb",
++ "target": "pacman",
+ "category": "Education"
+ },
+ "deb": {
+@@ -106,6 +106,14 @@
+ "libnss3",
+ "python3-codegrade-fs"
+ ]
++ },
++ "pacman": {
++ "depends": [
++ "gtk3",
++ "nss",
++ "libxss",
++ "libnotify"
++ ]
+ }
+ },
+ "dependencies": {
+@@ -141,7 +149,7 @@
+ "css-loader": "^0.28.11",
+ "del": "^3.0.0",
+ "devtron": "^1.4.0",
+- "electron": "^2.0.4",
++ "electron": "^3.0.0",
+ "electron-builder": "^20.19.2",
+ "electron-debug": "^1.5.0",
+ "electron-devtools-installer": "^2.2.4",