diff --git a/packages/libpapyros-git/.gitignore b/packages/libpapyros-git/.gitignore new file mode 100644 index 0000000..ec87196 --- /dev/null +++ b/packages/libpapyros-git/.gitignore @@ -0,0 +1 @@ +libpapyros diff --git a/packages/libpapyros-git/PKGBUILD b/packages/libpapyros-git/PKGBUILD new file mode 100644 index 0000000..3e62dc7 --- /dev/null +++ b/packages/libpapyros-git/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Michael Spencer + +_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 +} diff --git a/packages/papyros-shell/PKGBUILD b/packages/papyros-shell/PKGBUILD index 3cf24ec..f982159 100644 --- a/packages/papyros-shell/PKGBUILD +++ b/packages/papyros-shell/PKGBUILD @@ -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'