summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13d330e29759a7d4b5d9ace4c56ff76248ab6589 (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
# Maintainer: Peter Munch-Ellingsen <peterme@peterme.net>

_pkgname=xlunch
pkgname=xlunch-git
pkgver=4.7.3.r0.g96db085
pkgrel=1
pkgdesc="Graphical app launcher for X with few dependencies"
arch=('i686' 'x86_64')
url="http://xlunch.org/"
license=('GPL3')
depends=('sh' 'libx11' 'imlib2')
makedepends=('git' 'gcc' 'make' 'sed' 'grep')
provides=('xlunch')
conflicts=('xlunch')
source=('git+https://github.com/Tomas-M/xlunch.git'
        'xlunch-conf-gen.hook'
        'xlunch-conf-install.hook'
        'xlunch-conf-remove.hook')
md5sums=('SKIP'
         '309c9c1b92ed8ffd48b93d8f9f8270a8'
         '3986350c123f26415684cb1cabe33cb0'
         '7bc2cc30625750d62739d028c3b439b4')

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

build() {
    cd "$_pkgname"
    make xlunch
}

package() {
    cd "$srcdir/$_pkgname"
    make DESTDIR="$pkgdir/" install

    install -Dm644 ../xlunch-conf-gen.hook "$pkgdir"/usr/share/libalpm/hooks/xlunch-conf-gen.hook
    install -Dm644 ../xlunch-conf-install.hook "$pkgdir"/usr/share/libalpm/hooks/xlunch-conf-install.hook
    install -Dm644 ../xlunch-conf-remove.hook "$pkgdir"/usr/share/libalpm/hooks/xlunch-conf-remove.hook
}