summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 251170a8ae6f8114bf3f74c0335d13929d8cf781 (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
# Maintainer: Ling Wang <lingwang@wcysite.com>
_pkgname=sd-mux-ctrl
_reponame=badgerd-sdwirec
pkgname=sd-mux-ctrl-git
pkgver=1.3
pkgrel=0
pkgdesc="Software interact with SDWireC."
arch=("x86_64" "arm64" "riscv64")
url="https://github.com/Badger-Embedded/badgerd-sdwirec"
license=('Apache-2.0')
makedepends=('git' 'base-devel' 'cmake' 'pkgconf' 'make' 'gcc')
depends=('libftdi' 'popt')
provides=('sd-mux-ctrl=$pkgver')

source=(git+https://github.com/Badger-Embedded/$_reponame.git#branch=main)
sha256sums=('SKIP')


build() {
    cd "$srcdir/$_reponame"

    cd sdwirec-sw

    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=$pkgdir/usr
    make
}

package() {
    cd "$srcdir/$_reponame"
    cd sdwirec-sw/build
    make install
}