summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 51f740105fd1d723c935925478fd97128f2b6698 (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
# Maintainer: Emmanuel Villavizar Trinidad <evillavizartrinidad@gmail.com>
# Co-Maintainer: Lu Xu <oliver_lew at outlook dot com>

_pkgname=xdg-xmenu
pkgname=xdg-xmenu-git
pkgver=1.0.0.beta.2.r0.g2e2834d
pkgrel=1
pkgdesc="Minimal app menu with xmenu"
url="https://github.com/xlucn/xdg-xmenu"
arch=('x86_64' 'i686')
license=('MIT')
depends=('xmenu' 'libinih')
source=("git+$url#branch=c_version")
install="${pkgname}.install"
sha256sums=("SKIP")
makedepends=('git')

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

package() {
    cd "$srcdir/$_pkgname"
    make clean all
    make PREFIX=/usr DESTDIR="$pkgdir" install
    install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}