summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a48d5d97d033c23f40b0990e22f156d984c06ec (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
# Maintainer: Cp Dong <cp-dong at outlook dot com>

pkgname=slstatus
pkgver=1.0
pkgrel=2
pkgdesc='A status monitor for window managers that use WM_NAME or stdin to fill the status bar'
arch=(any)
url='http://tools.suckless.org/slstatus/'
depends=('libx11')
conflicts=('slstatus-git')
license=('custom:ISC')
source=('https://dl.suckless.org/tools/slstatus-1.0.tar.gz'
        'config.h')
sha256sums=('6d6d0a16c08dd9d211172c30c4720701267a3f40cdc938db3f386f6a2b6cff54'
            'SKIP')

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    if [[ -f "$srcdir/config.h" ]]; then
        cp -fv "$srcdir/config.h" config.h
    fi
}

build() {
    cd "$srcdir/$pkgname-$pkgver"
    make X11INC='/usr/include/X11' X11LIB='/usr/lib/X11'
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
    make PREFIX='/usr' DESTDIR="${pkgdir}" install
}