File indexing completed on 2024-05-12 04:45:54
0001 #! /bin/bash 0002 0003 set -x 0004 0005 ### Update sources 0006 wget -qO /etc/apt/sources.list.d/neon-user-repo.list https://raw.githubusercontent.com/Nitrux/iso-tool/development/configs/files/sources.list.neon.user 0007 0008 wget -qO /etc/apt/sources.list.d/nitrux-main-compat-repo.list https://raw.githubusercontent.com/Nitrux/iso-tool/development/configs/files/sources.list.nitrux 0009 0010 wget -qO /etc/apt/sources.list.d/nitrux-testing-repo.list https://raw.githubusercontent.com/Nitrux/iso-tool/development/configs/files/sources.list.nitrux.testing 0011 0012 DEBIAN_FRONTEND=noninteractive apt-key adv --keyserver keyserver.ubuntu.com --recv-keys \ 0013 55751E5D > /dev/null 0014 0015 curl -L https://packagecloud.io/nitrux/repo/gpgkey | apt-key add -; 0016 curl -L https://packagecloud.io/nitrux/compat/gpgkey | apt-key add -; 0017 curl -L https://packagecloud.io/nitrux/testing/gpgkey | apt-key add -; 0018 0019 DEBIAN_FRONTEND=noninteractive apt -qq update 0020 0021 ### Install Package Build Dependencies #2 0022 0023 DEBIAN_FRONTEND=noninteractive apt -qq -yy install --no-install-recommends \ 0024 mauikit-filebrowsing-git \ 0025 mauikit-git 0026 0027 rm -rf {LICENSE,README.md} 0028 0029 ### Compile Source 0030 0031 mkdir -p build && cd build 0032 0033 cmake \ 0034 -DCMAKE_INSTALL_PREFIX=/usr \ 0035 -DENABLE_BSYMBOLICFUNCTIONS=OFF \ 0036 -DQUICK_COMPILER=ON \ 0037 -DCMAKE_BUILD_TYPE=Release \ 0038 -DCMAKE_INSTALL_SYSCONFDIR=/etc \ 0039 -DCMAKE_INSTALL_LOCALSTATEDIR=/var \ 0040 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \ 0041 -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON \ 0042 -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" \ 0043 -DCMAKE_VERBOSE_MAKEFILE=ON \ 0044 -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu .. 0045 0046 make -j$(nproc) 0047 0048 ### Run checkinstall and Build Debian Package 0049 0050 >> description-pak printf "%s\n" \ 0051 'Simple calculator application built with MauiKit.' \ 0052 '' \ 0053 '' 0054 0055 checkinstall -D -y \ 0056 --install=no \ 0057 --fstrans=yes \ 0058 --pkgname=maui-calculator-git \ 0059 --pkgversion=$PACKAGE_VERSION \ 0060 --pkgarch=amd64 \ 0061 --pkgrelease="1" \ 0062 --pkglicense=LGPL-3 \ 0063 --pkggroup=utils \ 0064 --pkgsource=maui-calculator \ 0065 --pakdir=. \ 0066 --maintainer=uri_herrera@nxos.org \ 0067 --provides=maui-calculator \ 0068 --requires="bison,flex,libc6,libkf5coreaddons5,libkf5i18n5,libqt5core5a,libqt5gui5,libqt5qml5,libqt5sql5,libqt5widgets5,mauikit-accounts-git \(\>= 2.2.0+git\),mauikit-filebrowsing-git \(\>= 2.2.0+git\),mauikit-git \(\>= 2.2.0+git\)" \ 0069 --nodoc \ 0070 --strip=no \ 0071 --stripso=yes \ 0072 --reset-uids=yes \ 0073 --deldesc=yes