summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark2020-10-27 15:31:14 +0100
committerMartin T. H. Sandsmark2020-10-27 15:31:14 +0100
commitd5bccfc1f827a8a56a816c56fa809e16f7c77099 (patch)
tree5d5e695ed476d922f97c0db6801ac0dda9249a06
downloadaur-d5bccfc1f827a8a56a816c56fa809e16f7c77099.tar.gz
init
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD45
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d43462c9787
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = kde2-kdelibs-git
+ pkgdesc = Historical copy of the libs module of KDE 2, adapted to compile on modern systems
+ pkgver = 2.2.2.r23846.c22d02e13
+ pkgrel = 1
+ url = https://github.com/sandsmark/kdelibs
+ arch = i686
+ arch = x86_64
+ groups = kde2
+ license = GPL2
+ makedepends = cmake
+ makedepends = git
+ provides = kde2-kdelibs
+ conflicts = kde2-kdelibs
+ source = git+https://github.com/sandsmark/kdelibs.git
+ md5sums = SKIP
+
+pkgname = kde2-kdelibs-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8622aad4278
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Martin
+
+_module=libs
+pkgname=kde2-kde${_module}-git
+pkgver=2.2.2.r23846.c22d02e13
+pkgrel=1
+pkgdesc="Historical copy of the $_module module of KDE 2, adapted to compile on modern systems"
+arch=(i686 x86_64)
+url="https://github.com/sandsmark/kde${_module}"
+license=("GPL2")
+groups=(kde2)
+makedepends=(cmake git)
+provides=(kde2-kde${_module})
+conflicts=(kde2-kde${_module})
+
+# Mirror
+source=("git+https://github.com/sandsmark/kde${_module}.git")
+
+md5sums=('SKIP')
+
+pkgver() {
+ cd kde${_module}
+ printf "2.2.2.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ if [[ -d build ]]; then
+ rm -rf build && mkdir build
+ else
+ mkdir build
+ fi
+}
+
+build() {
+ cd build
+ cmake "$srcdir"/kde${_module} -DCMAKE_INSTALL_PREFIX=/usr -DKDEDIR=/usr/
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir/" install
+ cd "$srcdir"/kde${_module}
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+}