diff --git a/.circleci/config.yml b/.circleci/config.yml index 628f1dc..33da868 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,11 +2,12 @@ workflows: version: 2 build: jobs: - - build + - build_ubuntu + - build_arch version: 2 jobs: - build: + build_ubuntu: docker: - image: buildpack-deps:19.10 steps: @@ -65,3 +66,44 @@ jobs: cp *.deb /kshare/ - store_artifacts: path: /kshare/ + build_arch: + docker: + - image: archlinux/base:latest + steps: + - run: + name: Install pre deps + command: | + pacman -Sy \ + && pacman -S --noconfirm \ + base-devel \ + git \ + sudo \ + wget \ + - run: + name: disable_coredump + command: echo "Set disable_coredump false" >> /etc/sudo.conf + - run: + name: create build user + command: | + mkdir /home/build \ + && useradd --home /home/build --shell=/bin/false build && usermod -L build \ + && chown build:build /home/build \ + && echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \ + && echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \ + - run: + name: wget PKGBUILD + command: cd /home/build &&sudo -u build wget https://raw.githubusercontent.com/Gurkengewuerz/KShare/${CIRCLE_BRANCH}/packages/arch/${CIRCLE_BRANCH}-KShare/PKGBUILD + - run: + name: Where am I? + command: cd /home/build && pwd && ls -lah + - run: + name: Make arch package and install dependencies + command: cd /home/build && sudo -u build makepkg --syncdeps --noconfirm + - run: + name: Create Artifact Path + command: mkdir /kshare + - run: + name: Store Build + command: cp /home/build/*.pkg.tar.xz /kshare/ + - store_artifacts: + path: /kshare/ diff --git a/packages/arch/dev-KShare/PKGBUILD b/packages/arch/dev-KShare/PKGBUILD index c9cecf4..e0c5cd6 100644 --- a/packages/arch/dev-KShare/PKGBUILD +++ b/packages/arch/dev-KShare/PKGBUILD @@ -8,7 +8,7 @@ url="https://github.com/Gurkengewuerz/KShare" license=('MIT') provides=(kshare) conflicts=(kshare) -depends=(qt5-base qt5-x11extras qt5-svg xcb-util-cursor ffmpeg libxfixes) +depends=(qt5-base qt5-x11extras qt5-svg qt5-multimedia xcb-util-cursor ffmpeg libxfixes) makedepends=(git pkg-config) source=(git+https://github.com/Gurkengewuerz/KShare.git#branch=dev) sha1sums=('SKIP') diff --git a/packages/arch/master-KShare/PKGBUILD b/packages/arch/master-KShare/PKGBUILD index 59f0bd5..802cecc 100644 --- a/packages/arch/master-KShare/PKGBUILD +++ b/packages/arch/master-KShare/PKGBUILD @@ -8,7 +8,7 @@ arch=('i686' 'x86_64') url="https://github.com/Gurkengewuerz/KShare" license=('MIT') provides=('kshare=$pkgver') -depends=(qt5-base qt5-x11extras qt5-svg xcb-util-cursor ffmpeg libxfixes) +depends=(qt5-base qt5-x11extras qt5-svg qt5-multimedia xcb-util-cursor ffmpeg libxfixes) makedepends=(git pkg-config) source=(git+https://github.com/Gurkengewuerz/KShare.git) sha1sums=('SKIP')