summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 712c8a26cc5ea814b8d821f16e72c72fba4249a9 (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
# Maintainer: Brian Bidulock <bidulock@openss7.org>
# Contributor: Alexej Magura <agm2819*gmail*com>
# Contributor: libernux <dutchman55l@gmx.com>
# Contributor: Brian Bidulock <bidulock@openss7.org>

pkgname=wmcore
pkgver=0.0.2
pkgrel=12
pkgdesc="A windowmaker dockapp which shows the usage of each core in the system"
arch=('i686' 'x86_64')
#url="http://dockapps.windowmaker.org/file.php/id/362"
url="http://web.archive.org/web/20121114121553/http://dockapps.windowmaker.org/file.php/id/362"
license=('GPL')
depends=('libxpm')
#source=("http://dockapps.windowmaker.org/download.php/id/917/${pkgname}-${pkgver}.tar.gz")
source=("${pkgname}-${pkgver}.tar.gz" "list.patch")
md5sums=('26899aba55f84e649178ab8ab18f331e'
         'ce22a4016c93b0a1ee211e997f12a4e9')

prepare() {
    cd $pkgname-$pkgver
    make clean
    patch -Np2 -b -z .orig <../list.patch
}

build() {
    cd $pkgname-$pkgver
    make 
}

package() {
    cd $pkgname-$pkgver
    install -m 755 -D "$pkgname" "$pkgdir/usr/bin/$pkgname"

    if [[ -f "README" ]]; then
	install -m 644 -D "README" "$pkgdir/usr/share/doc/$pkgname/README"
    fi
    
    if [[ -f "CHANGES" ]]; then
	install -m 644 -D "CHANGES" "$pkgdir/usr/share/doc/$pkgname/CHANGES"
    fi
    
    if [[ -f "COPYING" ]]; then
	install -m 644 -D "COPYING" "$pkgdir/usr/share/doc/$pkgname/COPYING"
    fi
}