Commit dffc340f authored by azubieta's avatar azubieta
Browse files

Merge branch 'development' into 'master'

Development

See merge request !6
parents 19435d86 d181f68b
Pipeline #638 passed with stage
in 5 minutes and 44 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 -v dist/arch/* 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=plasma-appimage-integration-git.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
}
#!/usr/bin/env sh
set -e
## arg 1: the new package version
post_install() {
APPIMAGE_SERVICES_BIN_PATH=/usr/bin/appimage-services
APPIMAGE_SERVICES_URL="https://www.opencode.net/azubieta/AppImageService/-/jobs/artifacts/master/raw/appimage-services-x86_64.AppImage?job=build:AppImage"
if [ -f "$APPIMAGE_SERVICES_BIN_PATH" ]
then
echo "Using appimamge-services bin from $APPIMAGE_SERVICES_BIN_PATH"
else
echo "Installing appimage-services to $APPIMAGE_SERVICES_BIN_PATH"
wget "$APPIMAGE_SERVICES_URL" -O "$APPIMAGE_SERVICES_BIN_PATH"
chmod +x "$APPIMAGE_SERVICES_BIN_PATH"
"$APPIMAGE_SERVICES_BIN_PATH" self-install
fi
}
## arg 1: the old package version
post_remove() {
/usr/bin/appimage-services self-uninstall
rm /usr/bin/appimage-services
}
#! /bin/bash
#!/usr/bin/env sh
set -e
APPIMAGE_SERVICES_BIN_PATH=/usr/bin/appimage-services
......
#! /bin/bash
#!/usr/bin/env sh
set -e
/usr/bin/appimage-services self-uninstall
rm /usr/bin/appimage-services
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