diff options
author | Martin T. H. Sandsmark | 2021-02-18 16:14:54 +0100 |
---|---|---|
committer | Martin T. H. Sandsmark | 2021-02-18 16:16:54 +0100 |
commit | 5f3fced329504421b3eae7e2171988bc279be986 (patch) | |
tree | f043f72560bb893e446186ac7c3abf2fcbcd3ab2 | |
download | aur-5f3fced329504421b3eae7e2171988bc279be986.tar.gz |
init
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7654303df464 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = kde2-kdenetwork-git + pkgdesc = Historical copy of the network module of KDE 2, adapted to compile on modern systems + pkgver = 2.2.2.r16.85f8e0a + pkgrel = 1 + url = https://github.com/sandsmark/kdenetwork + arch = i686 + arch = x86_64 + groups = kde2 + license = GPL2 + makedepends = cmake + makedepends = git + depends = kde2-kdelibs + depends = hicolor-icon-theme + depends = qt2-git + provides = kde2-kdenetwork + conflicts = kde2-kdenetwork + options = libtool + source = git+https://github.com/sandsmark/kde2-kdenetwork.git + md5sums = SKIP + +pkgname = kde2-kdenetwork-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dbad9a22524f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Martin + +_module=network +pkgname=kde2-kde${_module}-git +pkgver=2.2.2.r16.85f8e0a +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) +depends=(kde2-kdelibs hicolor-icon-theme qt2-git) +makedepends=(cmake git) +provides=(kde2-kde${_module}) +conflicts=(kde2-kde${_module}) +options+=(libtool) + +source=("git+https://github.com/sandsmark/kde2-kde${_module}.git") + +md5sums=('SKIP') + +pkgver() { + cd kde2-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"/kde2-kde${_module} -DCMAKE_INSTALL_PREFIX=/usr -DKDEDIR=/usr/ -DCMAKE_BUILD_TYPE=Debug + make +} + +package() { + cd build + make DESTDIR="$pkgdir/" install + cd "$srcdir"/kde2-kde${_module} +} |