summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3c749e5e014bb49058949743fe445f3f4f5f4af (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=mentohust-git
pkgver=4.0.alpha2.r43.g857f5a1
pkgrel=1
pkgdesc="A Ruijie V4 supplicant on Linux and MacOS"
arch=('any')
license=('GPL')
url="https://github.com/hyrathb/mentohust"
depends=('libpcap')
optdepends=('libnotify')
makedepends=('git')
provides=('mentohust')
conflicts=('mentohust')
source=('git+https://github.com/hyrathb/mentohust.git')
sha256sums=('SKIP')
install=$pkgname.install

build()
{
    cd mentohust
    ./autogen.sh
    ./configure
    make
}

pkgver() {
    cd mentohust
    git describe --long --tags | sed 's/^V//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package()
{
    cd mentohust
    make install DESTDIR="${pkgdir}"
}