blob: f9efb51de16033ad557d7e551a500614caa855b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Lucas Malandrino <lucas.malandrino@gmail.com>
pkgname='edex-ui-git'
_pkgname='edex-ui'
pkgver=1.0.1.r32.g7c3f3ef
pkgrel=1
pkgdesc="A science fiction desktop running everywhere. Awesome."
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url='https://github.com/GitSquared/edex-ui'
license=('GPL3')
depends=('c-ares' 'ffmpeg' 'gtk3' 'http-parser' 'libevent' 'libvpx' 'libxslt' 'libxss' 'minizip' 'nss' 're2' 'snappy' 'libnotify' 'libappindicator-gtk2' 'libappindicator-gtk3' 'libappindicator-sharp')
makedepends=('npm' 'git')
conflicts=('edex-ui')
provides=('edex-ui')
install="edex-ui.install"
source=("git+https://github.com/GitSquared/edex-ui.git#branch=master")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || echo 1.0.0
}
build() {
cd "${_pkgname}"
npm install
# Build tarball with electron-builder
npm run prebuild-linux
${srcdir}/${_pkgname}/node_modules/.bin/electron-builder -l pacman -p never
npm run postbuild-linux
}
package() {
cd "${_pkgname}"
# Extract the package made by electron-builder
# It's not pretty but blame electron
tar xf ./dist/eDEX-UI-linux.pacman -C "${pkgdir}"
cd "${pkgdir}"
# Garbage made by electron-builder
rm -f "${pkgdir}/.INSTALL" "${pkgdir}/.MTREE" "${pkgdir}/.PKGINFO"
chmod 755 "${pkgdir}/opt/eDEX-UI/edex-ui"
}
|