Verified Commit a4c68b87 authored by azubieta's avatar azubieta
Browse files

Build Arch package

parent a3bcd1c2
Pipeline #634 failed with stage
in 4 minutes and 20 seconds
......@@ -12,3 +12,19 @@ build:neon-user-lts-deb:
artifacts:
paths:
- plasma-appimage-integration*.deb
build:arch_pkg:
image: archlinux/base
stage: build
before_script:
- pacman -Sy --noconfirm base-devel cmake git kf5 kdelibs4support
- useradd build
script:
- mkdir build
- chmod a+rwx build
- cp dist/arch/PKGBUILD build
- cd build && su build -c "makepkg"
- mv plasma-appimage-integration*.pkg.tar.xz ..
artifacts:
paths:
- plasma-appimage-integration*.pkg.tar.xz
# Maintainer: Alexis Lopez Zubieta <contact@azubieta.net>
projectname=plasma-appimage-integration
pkgname="$projectname-git"
pkgver=0.1.0
pkgrel=1
epoch=
pkgdesc="Plasma AppImage integration extensions"
arch=('x86_64')
url="https://www.opencode.net/azubieta/$projectname"
license=('MIT')
groups=('appimage')
depends=('qt5-base' 'kfilemetadata' 'knotifications')
makedepends=('git' 'cmake' 'kfilemetadata' 'knotifications' 'kdelibs4support')
checkdepends=()
optdepends=()
provides=("$projectname=$pkgver")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://www.opencode.net/azubieta/plasma-appimage-integration.git")
sha256sums=('SKIP')
noextract=()
validpgpkeys=()
prepare() {
GIT_COMMIT=`git rev-parse --verify HEAD`
cd "$srcdir/$projectname"
git checkout $GIT_COMMIT
}
build() {
cd "$srcdir/$projectname"
cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DCMAKE_BUILD_TYPE=Release .
make
}
package() {
cd "$srcdir/$projectname"
# must re-run CMake in order to populate the list of library files to bundle
# see 2175cfb for more information
cmake .
make DESTDIR="$pkgdir" install
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment