summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2b111e3affd2106e9380ff4d5bea4d21e555416 (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
43
44
# $Id$
# Maintainer: James Kittsmiller (AJSlye) <james@nulogicsystems.com>

_pkgname=AppImageLauncher
pkgname=appimagelauncher-git
pkgver=1alpha+git20180425.e530df7
pkgrel=1
pkgdesc="A Helper application for running and integrating AppImages."
arch=('x86_64')
url="https://github.com/TheAssassin/AppImageLauncher"
license=('MIT')
depends=('qt5-base' 'fuse' 'cairo' 'binutils' 'desktop-file-utils' 'shared-mime-info' 'inotify-tools' 'libarchive' 'binfmt-support')
makedepends=('git' 'cmake' 'wget' 'vim' 'binfmt-support')
source=("git://github.com/TheAssassin/$_pkgname#tag=continuous")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"

  printf "1alpha+git`date +%Y%m%d -u -d "$(git show -s --format=%ci $(git rev-parse HEAD))"`.%s" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/$_pkgname"

  git submodule update --init --recursive
}

build() {
  cd "$srcdir/$_pkgname"

  cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/ -DCMAKE_INSTALL_LIBDIR=/usr/lib

  make
}

package() {
  cd "$srcdir/$_pkgname"

  make DESTDIR="$pkgdir" install

  # install license files
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}