diff options
author | Skycoder42 | 2017-02-27 00:23:16 +0100 |
---|---|---|
committer | Skycoder42 | 2017-02-27 00:23:16 +0100 |
commit | 4f62cfd155d15bb817d941a6a503f5d0b290330a (patch) | |
tree | 2dc037589141442e1e981eba22d76a4a65639342 /PKGBUILD | |
download | aur-4f62cfd155d15bb817d941a6a503f5d0b290330a.tar.gz |
create repository
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ba95d1703f2e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Felix Barz <skycoder42.de@gmx.de> +pkgname=qt5-restclient +pkgver=1.0.0 +pkgrel=1 +pkgdesc="A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects" +arch=('i686' 'x86_64') +url="https://github.com/Skycoder42/QtRestClient" +license=('BSD') +depends=('qt5-base' 'qt5-tools' 'qt5-jsonserializer') +makedepends=('git') +source=("$pkgname-$pkgver::git+https://github.com/Skycoder42/QtRestClient.git#tag=$pkgver") +md5sums=('SKIP') + +build() { + cd "$pkgname-$pkgver" + + qmake + make qmake_all + make +} + +package() { + cd "$pkgname-$pkgver" + + make INSTALL_ROOT="$pkgdir" install + + FILE=$pkgdir/usr/lib/libQt5RestClient.prl + tail -n +2 "$FILE" > "$FILE.tmp" + mv "$FILE.tmp" "$FILE" + + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |