Last active
March 30, 2018 10:37
-
-
Save nhatzHK/524c86051a56eed0e1253d8e60b6328e to your computer and use it in GitHub Desktop.
PKGBUILD for Trinity https://github.com/invghost/Trinity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 '{}' + | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://github.com/nhatzHK/trinity-aur