summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff11b08e22a7a9f51d7917faf526e30915c86c1b (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
# Maintainer: MatMoul <matmoul at the google email domain which is .com>

_githubuser=aarnt
_githubrepo=qt-sudo
_gitcommit=90282654601767c69e564be81e8c33ab4e7c9095

pkgname=qt-sudo-dev
pkgver=0.0.0.r1.9028265
pkgrel=4
pkgdesc='A clone of LXQt sudo tool, without LXQt libs '
arch=('any')
url="https://github.com/${_githubuser}/${_githubrepo}"
license=('LGPL2.1')
depends=('sudo')
makedepends=('git' 'qt5-tools')
provides=('qt-sudo')
source=("git+https://github.com/${_githubuser}/${_githubrepo}.git#commit=${_gitcommit}")
sha256sums=('SKIP')

build() {
	cd "${_githubrepo}"
	echo "Starting build..."
	qmake-qt5 PREFIX=/usr QMAKE_CFLAGS="${CFLAGS}" QMAKE_CXXFLAGS="${CXXFLAGS}" QMAKE_LFLAGS="${LDFLAGS}"
	make
}

package() {
	cd "${_githubrepo}"
	#make install_ROOT="${pkgdir}" install
	install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
	install -D -m755 qt-sudo "${pkgdir}"/usr/local/bin/qt-sudo
}