summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbaef3431af98fe84910aae53c6fe010f0277352 (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
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=webman-git
pkgver=latest
pkgrel=1
pkgdesc="A web interface for the Arch Linux package manager (pacman)"
arch=('any')
url="https://github.com/flipflop97/WebMan"
license=('GPL-3.0')
depends=('python'
         'python-flask'
         'python-urllib3'
         'python-certifi'
         'python-beautifulsoup4'
         'python-editdistance'
         'xdg-utils')
provides=('webman')
source=("${pkgname}::git+https://github.com/flipflop97/WebMan.git"
        "run"
        "webman.desktop"
        "webman.svg")
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
    cd "${pkgname}"
    git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "${pkgname}"
    install -dm 755 "${pkgdir}/usr/lib/webman"
    cp -dr --no-preserve=ownership . "${pkgdir}/usr/lib/webman"
    cd ../..
    install -dm 755 "${pkgdir}/usr/bin"
    install -Tm 755 run "${pkgdir}/usr/bin/webman"
    install -dm 755 "${pkgdir}/usr/share/applications"
    install -m 755 webman.desktop "${pkgdir}/usr/share/applications"
    install -dm 755 "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
    install -m 755 webman.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
}