File indexing completed on 2024-07-14 11:53:20

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