summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1da3ed9f4c41731404db21c3e8f5cc5163908b0 (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
# Maintainer: Rafał Frączek <rafalfr@protonmail.ch>
pkgname=smarttrafficmeter
pkgver=2.1.1230.6885
pkgrel=1
pkgdesc="Software for measuring network usage."
arch=('x86_64')
url="https://github.com/rafalfr/smarttrafficmeter"
license=('GPL3')
depends=('boost-libs' 'curl')
makedepends=('gcc' 'git' 'boost' 'curl' 'binutils' 'gzip')
checkdepends=()
optdepends=()
provides=('smarttrafficmeter')
conflicts=()
replaces=()
backup=()
options=()
install='smarttrafficmeter.install'
changelog=
source=()
noextract=()
md5sums=()
validpgpkeys=()

build() {
    git clone --depth 1 "https://github.com/rafalfr/smarttrafficmeter.git"
    cd ${srcdir}/smarttrafficmeter/
    make -f SmartTrafficMeter.cbp.mak linux_release
}

package() {
    install -D -m755 ${srcdir}/smarttrafficmeter/bin/linux/release/smarttrafficmeter ${pkgdir}/usr/bin/smarttrafficmeter
    install -D -m755 ${srcdir}/smarttrafficmeter/install/arch/smarttrafficmeter.service ${pkgdir}/usr/lib/systemd/system/smarttrafficmeter.service
    install -D -m755 ${srcdir}/smarttrafficmeter/man/smarttrafficmeter.1 ${pkgdir}/usr/share/man/man1/smarttrafficmeter.1
    gzip /usr/share/man/man1/smarttrafficmeter.1
 }