summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13a4ca9db300352189e626965cd0b6e29bff6d3c (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Camber Huang <camber@poi.science>
pkgname=openixcard
pkgver=1.1.8
pkgrel=3
pkgdesc="Open Source Version of Allwinner PhoenixCard on Linux"
arch=("x86_64")
url="https://github.com/YuzukiTsuru/OpenixCard"
license=('GPL')
groups=()
depends=('glibc' 'confuse')
makedepends=('cmake' 'git')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}-${pkgver}::git+https://github.com/YuzukiTsuru/OpenixCard.git#tag=${pkgver}"
        "git+https://github.com/YuzukiTsuru/ColorCout.git"
		#"https://github.com/ctag/ColorCout"
        "git+https://github.com/p-ranav/argparse.git"
        "git+https://github.com/arun11299/cpp-subprocess.git"
        "git+https://github.com/ArthurSonzogni/FTXUI.git"
        "git+https://github.com/SemaiCZE/inicpp.git"
        )
noextract=()
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

prepare() {
    pushd $pkgname-$pkgver
        git submodule init
        git config submodule.lib/ColorCout.url "$srcdir/ColorCout"
        git config submodule.lib/argparse.url "$srcdir/argparse"
        git config submodule.lib/cpp-subprocess.url "$srcdir/cpp-subprocess"
        git config submodule.lib/ftxui.url "$srcdir/FTXUI"
        git config submodule.lib/inicpp.url "$srcdir/inicpp"
		git -c protocol.file.allow=always submodule update
        pushd lib/argparse
            #git checkout 95d4850 include/argparse/argparse.hpp
        popd
        pushd lib/inicpp
			git fetch
			git checkout 0f7bd53
		popd
        pushd lib/ColorCout
			git fetch
			git checkout 3bed851
		popd
		
    popd
}

build() {
    cmake -B build -S $pkgname-$pkgver \
        -Wno-dev \
        -DCMAKE_INSTALL_PREFIX='/usr'
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
}