diff options
author | Wachid Adi Nugroho | 2022-11-21 16:26:55 +0700 |
---|---|---|
committer | Wachid Adi Nugroho | 2022-11-21 16:26:55 +0700 |
commit | 8fbf360b3696628d74fdf13ac5ea8d32a97ca112 (patch) | |
tree | 2bacfcf1bcef1feb9909af0a2aa658fb15a3d9eb | |
download | aur-8fbf360b3696628d74fdf13ac5ea8d32a97ca112.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a4abad7cb591 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = mauikit-documents-git + pkgdesc = MauiKit Documents components + pkgver = r12.1c213b4 + pkgrel = 1 + url = https://invent.kde.org/maui/mauikit-documents + arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 + groups = maui + license = GPL3 + makedepends = git + makedepends = extra-cmake-modules + depends = karchive + depends = kconfig + depends = kcoreaddons + depends = kguiaddons + depends = kfilemetadata + depends = kiconthemes + depends = kio + depends = ki18n + depends = mauikit-git + depends = poppler-qt5 + depends = qt5-base + depends = qt5-declarative + depends = qt5-quickcontrols2 + depends = zlib + provides = mauikit-documents + conflicts = mauikit-documents + source = git+https://invent.kde.org/maui/mauikit-documents.git + sha256sums = SKIP + +pkgname = mauikit-documents-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9f66f028dd65 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Wachid Adi Nugroho <wachidadinugroho.maya@gmail.com> + +_pkgname=mauikit-documents +pkgname=$_pkgname-git +pkgver=r12.1c213b4 +pkgrel=1 +pkgdesc='MauiKit Documents components' +url='https://invent.kde.org/maui/mauikit-documents' +arch=(x86_64 i686 arm armv6h armv7h aarch64) +license=(GPL3) +depends=(karchive + kconfig + kcoreaddons + kguiaddons + kfilemetadata + kiconthemes + kio + ki18n + mauikit-git + poppler-qt5 + qt5-base + qt5-declarative + qt5-quickcontrols2 + zlib) +makedepends=(git extra-cmake-modules) +groups=(maui) +provides=($_pkgname) +conflicts=($_pkgname) +source=(git+$url.git) +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cmake -B build -S $_pkgname \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} |