aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5693784c4fea0f3b427d97adb2697d13bd580a5 (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
_pkgname=croco-network-assistant
pkgname=${_pkgname}-git
pkgver=r6.14645c2
pkgrel=1
pkgdesc="A Boot options utility for Croco OS"
arch=('any')
url="https://gitlab.com/croco-os/applications/croco-network-assistant"
license=('GPL3')
depends=('qt5-base' 'xdg-utils' 'polkit' 'wget' 'net-tools' 'linux-wifi-hotspot' 'traceroute' 'ethtool'  'wireless_tools')
optdepends=('ndiswrapper' 'ndiswrapper-dkms')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
groups=('croco-git')
source=("git+https://gitlab.com/croco-os/applications/${_pkgname}.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${_pkgname}"
# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${_pkgname}"
	qmake-qt5 ${_pkgname}.pro
	make
}

package() {
	cd "$srcdir/${_pkgname}"
	make INSTALL_ROOT=${pkgdir} install
}