summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a9de34c9be4de2b9f1b711d26b0514e747240a6 (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
# Maintainer: Shengyu Zhang <la@archlinuxcn.org>
# Contributor: Shen Miren <dickeny@gmail.com>
# Contributor: renyuneyun <renyuneyun@gmail.com>

pkgname=mentohust
pkgver=0.3.1
pkgrel=7
pkgdesc="A Ruijie and Cernet supplicant"
arch=('i686' 'x86_64')
url="https://code.google.com/archive/p/mentohust/"
license=('GPL')
depends=('libpcap')
optdepends=('libnotify')
conflicts=('mentohust-git')
provides=()
backup=('etc/mentohust.conf')
install=$pkgname.install
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mentohust/${pkgname}-${pkgver}.tar.gz"
		"${pkgname}.service")

sha256sums=('e7d15008487d1130c90037581f8243ac145d0114006a08e3f0ac00751b2e1c6a'
            '1a6bacff66f9469f3b3d81772c5b989cbb75f323c64c7aa7478c58199e322db4')


build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make install DESTDIR="${pkgdir}"
	cd -

	# install systemd service
	install -D -m 644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}