summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ba7073898ac4afe48b9e9b1d68044e3ae527ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 270955 2016-07-05 10:45:42Z arojas $
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=kqoauth
pkgver=0.98
pkgrel=1
pkgdesc="A library written in C++ for Qt that implements the OAuth 1.0 authentication specification RFC 5849"
arch=(i686 x86_64)
url='https://github.com/kypeli/kQOAuth'
license=(GPL)
depends=(qt5-base)
source=($pkgname-$pkgver.tar.gz::"https://github.com/kypeli/kQOAuth/archive/$pkgver.tar.gz")
sha1sums=('b029c54000f818e01db3fbea447ec94d24fa594f')

prepare() {
  mkdir -p build 
}

build() {
  cd build
  qmake ../kQOAuth-$pkgver
  make
}

package() {
  cd build
  make INSTALL_ROOT="$pkgdir" install

  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  find "$pkgdir/usr/lib" -type f -name '*.prl' -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}