summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 278983c122fc93384f0ceaf520b9464ccf6c6570 (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
# Maintainer: Brandon Hall <brandonjhall@windstream.net>
pkgname=aurbrowser
pkgver=1.3.0
pkgrel=4
pkgdesc="A Qt application that allows an Arch Linux user to browse and install packages from the AUR."
arch=('x86_64')
url="https://gitlab.com/brandonjhall/aurbrowser"
license=('GPL')
depends=('qt5-base>=5.10.0-1' 'gcc-libs>=7.2.1+20180116-1' 'glibc>=2.26-11' 'sudo')
makedepends=()
source=($pkgname-$pkgver.tar.gz::"https://gitlab.com/brandonjhall/aurbrowser/repository/v$pkgver/archive.tar.gz" appname.patch)
install=aurbrowser.install
md5sums=('f72f1321227870053c2723b20ff497b3'
         '24a93fefebf07994b8d640c206e38e20')
commitsha=7e6e070d2a8e2bc2d22553b115a3e2ef5181e5c7

prepare() {
	cd "$pkgname-v$pkgver-$commitsha"
	patch -p0 < $startdir/appname.patch
	sed -i 's/Path=\/usr\/local\/bin/Path=\/usr\/bin/g' AUR-Browser.desktop
	qmake "INSTALL_PREFIX=$pkgdir/usr"
}

build() {
	cd "$pkgname-v$pkgver-$commitsha"
	make
}

check() {
	cd "$pkgname-v$pkgver-$commitsha"
	make -k check
}

package() {
	cd "$pkgname-v$pkgver-$commitsha"
	make DESTDIR="$pkgdir/usr/bin" install
}