aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/PKGBUILD
blob: 4d239c857d1f15dc8c78c7ed5922502948f49b4b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                                 
          
        









                                                                

                
                                                                             

                         



                                                                        
                                                                                      




                                                               

                                                                                      


                                                                                            
# Maintainer: Egor Tensin <Egor.Tensin@gmail.com>
pkgname=linux-status
pkgver=1.0
pkgrel=2
pkgdesc='Simple Linux status web page'
arch=(any)
url='https://github.com/egor-tensin/linux-status'
license=(MIT)
depends=(procps-ng python systemd)
install=linux-status.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
md5sums=(SKIP)

package() {
    cd "$srcdir"

    install -D -m 0644 -t "$pkgdir/usr/share/doc/linux-status" ../README.Arch

    cd "$pkgname-$pkgver"

    install -D -m 0644 -t "$pkgdir/usr/share/linux-status" LICENSE.txt

    install -D -m 0644 -t "$pkgdir/usr/share/doc/linux-status" README.md
    find img -type f -exec install -D -m 0644 -t "$pkgdir/srv/linux-status/img" {} ';'

    install -D -m 0755 -t "$pkgdir/srv/linux-status" app.py
    install -D -m 0755 -t "$pkgdir/srv/linux-status" server.py

    install -D -m 0644 -t "$pkgdir/srv/linux-status" index.html
    find css -type f -exec install -D -m 0644 -t "$pkgdir/srv/linux-status/css" {} ';'
    find js  -type f -exec install -D -m 0644 -t "$pkgdir/srv/linux-status/js"  {} ';'

    install -D -m 0644 -t "$pkgdir/usr/lib/systemd/system" dist/systemd/linux-status.service
}