summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40ba3b87b7ab1a6b8eeef119fa08c7d7bba98312 (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
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Felix Barz <skycoder42.de@gmx.de>
pkgname=qpmx
pkgver=1.0.0
pkgrel=1
pkgdesc="A frontend for qpm, to provide source and build caching"
arch=('i686' 'x86_64')
url="https://github.com/Skycoder42/$pkgname"
license=('BSD')
depends=('qt5-base' 'qt5-jsonserializer' )
makedepends=('qt5-tools' 'git')
optdepends=("qpm: Adds support for cloning qpm packages"
			"git: Adds support for cloning git and github packages"
			"repkg: Automatically rebuild the package on dependency updates")
_pkgfqn=$pkgname-$pkgver
source=("$_pkgfqn::git+https://github.com/Skycoder42/$pkgname.git#tag=$pkgver"
		"$pkgname.rule")
sha256sums=('SKIP'
            '6029d42b05d32d99a6e673e5a7c95ac657e6258f88835f8aff05bde7535e543b')

prepare() {
  mkdir -p build
  
  cd "$_pkgfqn"
  git submodule update --init --recursive
  echo "CONFIG += no_installer" >> .qmake.conf
}

build() {
  cd build
  
  qmake -r "../$_pkgfqn/"
  make
}

package() {
  cd build
  make INSTALL_ROOT="$pkgdir" install
  
  cd "../$_pkgfqn"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/${pkgname}.rule"
}