diff options
author | BuildTools | 2016-09-05 18:24:57 +0200 |
---|---|---|
committer | BuildTools | 2016-09-05 18:24:57 +0200 |
commit | 8d6c26b9860084c7eb4ce15af60639dab52de42e (patch) | |
tree | 20f59d268854ae39ed82c1d093264412e87f1841 | |
parent | c0b9ca8a1b69deed08e47bfaf32a4b2f2aae8c84 (diff) | |
download | aur-8d6c26b9860084c7eb4ce15af60639dab52de42e.tar.gz |
Updated to use my own methods
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 18 insertions, 15 deletions
@@ -2,7 +2,7 @@ pkgname=quaternion-git pkgver=afdab5b -pkgrel=1 +pkgrel=2 pkgdesc="Qt5-based IM client for the Matrix protocol" arch=('any') url="https://github.com/Fxrh/Quaternion" @@ -11,31 +11,34 @@ depends=('qt5-base' 'qt5-declarative' 'qt5-quickcontrols') makedepends=('git') provides=('quaternion') conflicts=('quaternion') -source=('git+https://github.com/fxrh/quaternion.git') +source=('quaternion-git::git+https://github.com/fxrh/quaternion.git') md5sums=('SKIP') -_gitname=quaternion pkgver () { - cd $_gitname - echo $(git describe --always | sed 's/-/./g') + cd $pkgname + echo $(git describe --always | sed 's/-/./g') } prepare() { - cd $_gitname - git remote set-url origin https://github.com/fxrh/quaternion.git - git submodule update --init --recursive + cd $pkgname + git remote set-url origin https://github.com/fxrh/quaternion.git + git submodule update --init --recursive } build() { - mkdir $_gitname/build || true - cd $_gitname/build - cmake .. - make + mkdir $pkgname/build || true + cd $pkgname/build + cmake .. + make $MAKEFLAGS } package() { - cd $_gitname - install -Dm755 "build/quaternion" -t "$pkgdir/usr/bin/" - install -Dm644 "linux/quaternion.desktop" -t "$pkgdir/usr/share/applications/" + cd $pkgname + + # The application + install -Dm755 "build/quaternion" -t "$pkgdir/usr/bin/" + + # .desktop file + install -Dm644 "linux/quaternion.desktop" -t "$pkgdir/usr/share/applications/" } |