Skip to content

Instantly share code, notes, and snippets.

@nhatzHK
Last active March 30, 2018 10:37
Show Gist options
  • Save nhatzHK/524c86051a56eed0e1253d8e60b6328e to your computer and use it in GitHub Desktop.
Save nhatzHK/524c86051a56eed0e1253d8e60b6328e to your computer and use it in GitHub Desktop.
# Maintainer: Lionel Peller <errpell@protonmail.com>
pkgname=trinity-matrix-git
pkgver=r21.b8ed76c
pkgrel=1
pkgdesc="Qt5 QML Matrix client"
arch=('x86_64')
url="https://github.com/invghost/Trinity.git"
license=('GPL3')
depends=('qt5-declarative' 'cmark')
makedepends=('git')
install=
source=('trinity-matrix-git::git+https://github.com/invghost/Trinity.git')
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$pkgname"
cmake ./
cmake --build ./
}
package() {
cd "$pkgname"
cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/usr"
make install
find "$pkgdir" -type d -name ".git" -exec rm -r '{}' +
}
@nhatzHK
Copy link
Author

nhatzHK commented Mar 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment