Initial commit

This commit is contained in:
TBK 2020-03-17 14:57:22 +01:00
commit 978713a2a7
No known key found for this signature in database
GPG Key ID: 6D4FD19CB66C95EA
4 changed files with 81 additions and 0 deletions

16
.SRCINFO Normal file
View File

@ -0,0 +1,16 @@
pkgbase = libqtolm-git
pkgdesc = A Qt wrapper for libolm
pkgver = f2d8e23
pkgrel = 1
url = https://gitlab.com/b0/libQtOlm
arch = any
license = GPL-3.0-or-later
makedepends = cmake
makedepends = git
depends = qt5-base
depends = libolm
source = libqtolm-git::git+https://gitlab.com/b0/libQtOlm.git
b2sums = SKIP
pkgname = libqtolm-git

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
pkg/*
src/*
*.pkg.tar.xz
*.tar.gz
libqtolm-git/*

43
PKGBUILD Normal file
View File

@ -0,0 +1,43 @@
# Maintainer: TBK <aur at jjtc dot eu>
# Contributor: TBK <aur at jjtc dot eu>
pkgname=libqtolm-git
pkgver=f2d8e23
pkgrel=1
pkgdesc='A Qt wrapper for libolm'
url='https://gitlab.com/b0/libQtOlm'
arch=('any')
license=('GPL-3.0-or-later')
depends=('qt5-base' 'libolm')
makedepends=('cmake' 'git')
source=("$pkgname::git+https://gitlab.com/b0/libQtOlm.git")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git rev-parse --short HEAD | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
sed -i 's/utils.h/utilities.h/g' CMakeLists.txt libQtOlm.pri main.cpp
cd lib
mv utils.h utilities.h
sed -i 's/utils.h/utilities.h/g' account.cpp groupsession.cpp pk.cpp session.cpp
}
build() {
cd "$srcdir/$pkgname"
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=true .
make -C build
}
package() {
cd "$srcdir/$pkgname"
make -C build DESTDIR="$pkgdir" install
}

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# Termius
Arch User Repository libqtolm-git
## Update package
* Update package version in PKGBUILD
* Generate new checksums with
```$ updpkgsums```
* Test install
```$ makepkg -si```
* Update .SRCINFO
```$ makepkg --printsrcinfo > .SRCINFO```