summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f811aec755ab2559288a62c4732199da8a1c825f (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
70
# This file has been AUTO-GENERATED by crosspkg utility, which is part of TSPkg project (tssoftware.eu)
# Please do NOT edit by hand


set -e

                baseurl='https://content.tssoftware.eu/scripts/rpk_compat/'; 
                eval "$(curl $baseurl/libcrosspkg.sh)"$'\n'
                eval "$(curl $baseurl/libcrosspkg_remote.sh)"
                export remote=1
            
pkgname='conquery'
uniq='tssoftware:conquery'
appname='TSConQuery'
alias='TS ConQuery'
pkgdesc='Fast, and space effective data storage format (.tscq) encoder/decoder library'
author='TS'
type='app'
pkgver='1.0.0'
platforms=( 'all' )
groups=( 'System/Library/Database' 'System/Library/Archiver' )
contents=( '/lib<build/lib' )
pkgdir='/tmp/tmp.msJx4BDiWw/sh/pkg'
options=( '!strip' )
pkgrel=1

arch=(  'any' )

depends=( )
makedepends=( rpkdev )
abstorel(){
    sed -E 's/^\/+//g'
}

build() {
    if [ "$remote" == 1 ]; then
        echo "srcdir: $srcdir"
        echo "pkgname: $pkgname"
        cd "$srcdir"
        getpkg "$uniq" "$pkgname" "$pkgver"
    fi
#     [ -f Makefile ] && make -j 4 || ninja
}
run(){
    echo ">>> $@"
    $@
}
package() { 
    echo "Conversion of tspkg started."
    if [ "$remote" == 1 ]; then
        projdir="$srcdir"
    fi
    cd "$projdir/$pkgname"
#     echo "PWD: $PWD"
#     for((i = 0; i < ${#contents[@]}; i++)); do
    dir -1 "./" | while read f; do
#         echo "#contents: ${#contents[@]}"
#         IFS="<" read -a sp <<< "${contents[$i]}"
#         echo "#contents: ${#contents[@]}"
        
#         echo ln -sf "$(trimstr "${sp[1]}")}" "$pkgdir/$(tspkg_convpath "$(trimstr "${sp[0]}")")"
        nativepth="$(tspkg_convpath <<< "$(trimstr "${f}")")"
#         echo "nativepth: $nativepth"
#         echo "pkgdir: $pkgdir"
        mkdir -p "$pkgdir/$(dirname "$nativepth")"
        run cp -R "$(abstorel <<< "${f}")" "$pkgdir/$(abstorel <<< "$nativepth")"
#         cp -R "$(realpath "$(trimstr "${sp[1]}")")" "$pkgdir/$inpkg_path"
    done
    chmod -R 755 "$pkgdir/"
}