summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 997cecf23119a5f0cad9596e7b0c9498e74dcbf4 (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
# Maintainer: sineptic <sineptic0@gmail.com>
pkgbase=chromium-surfingkeys
pkgname=$pkgbase-git
pkgver=f152a9a8
pkgrel=1
pkgdesc="Unpacked browser extension that provides keyboard-based navigation and control of the web in the spirit of the VIM editor"
arch=('any')
license=('MIT')
url="https://github.com/brookhong/Surfingkeys.git"
source=("surfingkeys::git+$url")
sha256sums=('SKIP')

makedepends=('git' 'npm')

pkgver() {
    cd surfingkeys
    git rev-parse HEAD | head -c 8
}

build() {
    cd surfingkeys

    npm install
    npm run build:prod
}

package() {
    mkdir -p "$pkgdir/usr/share/"

    cd "surfingkeys/dist/production/chrome"
    cp -r --no-preserve=ownership . "$pkgdir/usr/share/$pkgbase"
}