summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eddb867e47eee667d3a43e5068b023980c8d16fa (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
pkgname=dusk-git
_pkgname=dusk
pkgver=r467.4cce9d6
pkgrel=1
pkgdesc="Just another fork of dwm"
url="https://github.com/bakkeby/dusk"
arch=('i686' 'x86_64')
license=('MIT')
depends=('git' 'libx11' 'libxcb' 'libxinerama' 'libxft' 'imlib2' 'yajl')
optdepends=('dmenu: default application launcher'
	    'st: default terminal')
source=(git+https://github.com/bakkeby/dusk.git)
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/$_pkgname"
    make config.h
    make
}

package() {
    cd "$srcdir/$_pkgname"
    #make PREFIX=/usr DESTDIR="$pkgdir" install
    install -Dm755 dusk "$pkgdir/usr/bin/dusk"
    install -Dm755 duskc "$pkgdir/usr/bin/duskc"
    install -Dm644 dusk.1 "$pkgdir/usr/share/man/man1/dusk.1"
    sed -i "s/VERSION/1.0/g" "$pkgdir/usr/share/man/man1/dusk.1"
    install -Dm644 dusk.desktop "$pkgdir/usr/share/xsessions/dusk.desktop"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}