summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5b8ff75f92e6954a75b115c90dababaff4085f9 (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: Rafał Frączek <rafalfr@protonmail.ch>
pkgname=smarttrafficmeter
pkgver=2.1.1286.7198
pkgrel=1
pkgdesc="Software for measuring network usage."
arch=('x86_64')
url="https://github.com/rafalfr/smarttrafficmeter"
license=('GPL3')
depends=('boost-libs' 'curl' 'xdg-utils')
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/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
    install -D -m755 ${srcdir}/smarttrafficmeter/install/desktop/smarttrafficmeter.desktop ${pkgdir}/usr/share/applications/smarttrafficmeter.desktop
    install -D -m755 ${srcdir}/smarttrafficmeter/install/desktop/smarttrafficmeter.png ${pkgdir}/usr/share/pixmaps/smarttrafficmeter.png
    install -D -m755 ${srcdir}/smarttrafficmeter/install/desktop/smarttrafficmeter.appdata.xml ${pkgdir}/usr/share/appdata/smarttrafficmeter.appdata.xml
}