summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7b2534da1d797b523b16a80510147eed195b5aa (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
39
40
41
42
43
44
45
# Maintainer: fenrig <fenrig.linux at outlook.com>
pkgname=amxb_ubus-git
pkgver=3.0.19.r0.gf6a1666
pkgrel=1
pkgdesc="Ubus baapi back-end"
arch=("x86_64" "i686" "i486" "pentium4" "arm" "armv6h" "armv7h" "aarch64")
url="https://gitlab.com/soft.at.home/ambiorix/modules/amxb_backends/amxb_ubus.git"
license=(BSD)

depends=(
	'lib_amxc'
	'lib_amxp'
	'libubox'
	'ubus'
)
makedepends=(
	'git'
)
provides=(
	'amxb_ubus'
)
conflicts=(
	'amxb_ubus'
)

gitbranch="main"

source=("${pkgname}::git+https://gitlab.com/soft.at.home/ambiorix/modules/amxb_backends/amxb_ubus.git#branch=${gitbranch}")
md5sums=('SKIP')

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

build() {
	cd "${pkgname}"
	make
}

package() {
	cd "${pkgname}"
	make DEST="${pkgdir}/" LIBDIR="/usr/lib" install
	install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}