summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d70f8fcd37228d47ee15e2066ca8e9e2c569461 (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
48
49
50
51
# Generated by debtap
# Maintainer: e-search-git
# Contributor: e-search-git
pkgname=e-search-git
pkgver=1.9.0
pkgrel=1
pkgdesc="识屏 · 搜索"
arch=('x86_64')
url="https://github.com/xushengfeng/eSearch"
license=('GPL3')
groups=('')
depends=('at-spi2-core' 'clion' 'desktop-file-utils' 'glib2' 'gtk3' 'hicolor-icon-theme' 'kde-cli-tools' 'libdrm' 'libnotify' 'libxcb' 'libxtst' 'mesa' 'metasploit' 'trash-cli' 'xdg-utils' 'libappindicator-gtk3')
makedepends=('git' 'npm' 'nodejs' 'node-gyp' 'python')
optdepends=('alsa-lib'
            'apparmor'
            'gir1.2-gnomekeyring-1.0'
            'libgnome-keyring'
            'pulseaudio')
conflicts=('e-search')
options=('!strip' '!emptydirs')
install=${pkgname}.install
source=("git+https://github.com/xushengfeng/eSearch")
sha512sums=('SKIP')


prepare() {
    cd "${srcdir}/eSearch"
    git checkout $(git describe --abbrev=0 --tags)
    npm install
}


build() {
    cd "${srcdir}/eSearch"
    sed -i "s/\"tar.gz\",//g" package.json
    sed -i "s/\"deb\",/\"deb\"/g" package.json
    sed -i "s/\"rpm\",//g" package.json
    sed -i "s/\"AppImage\"//g" package.json
    npm run dist
}

package(){
    cd "${srcdir}/eSearch/build"

	# Extract package data
    ar -x *.deb
	tar xf data.tar.xz -C "${pkgdir}"

	install -D -m644 "${pkgdir}/opt/eSearch/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

}