summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35ac7c201d9ba9b98f66989ee820a5ef84b18358 (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
71
72
# 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='lib-lt-devel'
uniq='tssoftware:lt'
appname='LT'
alias='LT Widget Toolkit -- Developer version'
pkgdesc='Beautiful & Lightweight Widget Toolkit library (also privedes C++ apis, such as LString, LProcess, LArray ...).
 -- Developer version'
author='TS'
type='library'
pkgver='1.0.0'
platforms=( 'all' )
deps=( 'rcore/libsdl:lib-sdl2' 'rcore/libsdl:lib-sdl2_image' 'rcore/libsdl:lib-sdl2_mixer' 'rcore/freetype:lib-freetype2' )
groups=( 'Library/WidgetToolkit' )
contents=( '/icon.svg<lt_3d.svg' '/data<./Data' '/data/Themes<./Themes' '/docs<./Docs' '/lib/LT/PluginInf<./PluginInf' '/conf/ltconf.tsml<ltconf.tsml' '/lib/LT/Debug/Plugins<./build//Debug/lib/Plugins' '/lib/LT/Debug/libLT_pluginmanager.so<./build//Debug/lib/libLT_pluginmanager.so' '/lib/LT/Debug/libLTBase.so<./build//Debug/lib/libLTBase.so' '/lib/LT/Debug/libLT.so<./build//Debug/lib/libLT.so' '/lib/LT/Debug/libLTundoredo.so<./build//Debug/lib/libLTundoredo.so' '/lib/LT/Debug/libTSMLParser.so<./build//Debug/lib/libTSMLParser.so' '/lib/LT/Developer<Developer/' )
pkgdir='/tmp/tmp.seWMlfoUaq/sh/pkg'
options=( '!strip' )
pkgrel=1

arch=(  'any' )

depends=( 'sdl2' 'sdl2_image' 'sdl2_mixer' 'freetype2' )
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/"
}