Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
azubieta
plasma-appimage-integration
Commits
dffc340f
Commit
dffc340f
authored
Jul 23, 2019
by
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
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
dffc340f
...
...
@@ -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
dist/arch/PKGBUILD
0 → 100644
View file @
dffc340f
# 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
}
dist/arch/plasma-appimage-integration-git.install
0 → 100755
View file @
dffc340f
#!/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
}
dist/deb/postinst
View file @
dffc340f
#! /bin/bash
#!/usr/bin/env sh
set
-e
APPIMAGE_SERVICES_BIN_PATH
=
/usr/bin/appimage-services
...
...
dist/deb/postrm
View file @
dffc340f
#! /bin/bash
#!/usr/bin/env sh
set
-e
/usr/bin/appimage-services self-uninstall
rm
/usr/bin/appimage-services
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment