blob: 7482854f5de31c86df0869a0a09add2418c13377 (
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
|
# Maintainer: Latif Sulistyo <latipun@aur.archlinux.org>
# shellcheck disable=2034,2154
# shellcheck shell=bash
pkgname=selectdefaultapplication-fork-git
pkgver=r72.4e8501d
pkgrel=1
pkgdesc='A very simple application that lets you define default applications on Linux in a sane way'
arch=('i686' 'x86_64')
url='https://github.com/magnus-ISU/selectdefaultapplication'
license=('GPL')
provides=("selectdefaultapplication")
conflicts=("selectdefaultapplication" "selectdefaultapplication-git")
depends=('qt5-base' 'hicolor-icon-theme')
makedepends=('git')
source=("git+$url.git")
md5sums=('SKIP')
pkgver() {
cd selectdefaultapplication || exit 1
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd selectdefaultapplication || exit 1
qmake
make
}
package() {
cd selectdefaultapplication || exit 1
install -dm755 "${pkgdir}/usr/bin/"
install -m755 selectdefaultapplication "${pkgdir}/usr/bin/"
install -dm755 "${pkgdir}/usr/share/applications/"
install -m644 selectdefaultapplication.desktop "${pkgdir}/usr/share/applications/"
install -dm755 "${pkgdir}/usr/share/icons/hicolor/48x48/apps/"
install -m644 selectdefaultapplication.png "${pkgdir}/usr/share/icons/hicolor/48x48/apps/"
}
|