Skip to content

Commit

Permalink
Add package for libpapyros
Browse files Browse the repository at this point in the history
Test #9
  • Loading branch information
iBelieve committed Jan 8, 2016
1 parent 46cf2ff commit 181f503
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/libpapyros-git/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libpapyros
54 changes: 54 additions & 0 deletions packages/libpapyros-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Maintainer: Michael Spencer <[email protected]>

_pkgname=libpapyros
pkgname=${_pkgname}-git
pkgver=0
pkgrel=1
pkgdesc="Library of common classes for Papyros"
arch=("i686" "x86_64")
url="https://github.com/papyros/libpapyros"
license=("GPL")
depends=("qt5-base-git" "qt5-declarative" "kconfig")
makedepends=("git" "python" "extra-cmake-modules")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/papyros/libpapyros.git")
sha256sums=("SKIP")

pkgver() {
cd "$srcdir/${_pkgname}"

( set -o pipefail
git describe --long 2>/dev/null | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}

prepare() {
mkdir -p build
cd build
cmake "$srcdir/${_pkgname}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=lib \
-DLIBEXEC_INSTALL_DIR=lib \
-DQML_INSTALL_DIR=lib/qt/qml \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
}

package() {
cd build
make DESTDIR="${pkgdir}" install
}

# Additional functions to generate a changelog

changelog() {
cd "${_pkgname}"
git log $1..HEAD --no-merges --format=" * %s"
}

gitref() {
cd "${_pkgname}"
git rev-parse HEAD
}
2 changes: 1 addition & 1 deletion packages/papyros-shell/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license=("GPL")
depends=("qt5-base-git" "qt5-declarative" "qt5-quickcontrols" "qt5-wayland-dev-git"
"qt5-graphicaleffects" "greenisland-git" "qml-material" "kdeclarative"
"pam" "libpulse" "libqtxdg" "solid" "kconfig" "networkmanager-qt"
"ttf-dejavu" "ttf-droid")
"ttf-dejavu" "ttf-droid" "libpapyros-git")
optdepends=('pulseaudio: audio support'
'sddm: login screen theme'
'paper-icon-theme: default icon theme'
Expand Down

0 comments on commit 181f503

Please sign in to comment.