summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 538f41d4e0487e9a7fc88357ccfdd9722ed00558 (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: twa022 <twa022 at gmail dot com>

_pkgname=plotinus
pkgname=$_pkgname-git
epoch=1
pkgver=0.2.0+1+g0ce7a4b
pkgrel=1
pkgdesc="A searchable command palette in every modern GTK+ application"
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="http://github.com/p-e-w/plotinus"
license=('GPL')
depends=('gtk3')
makedepends=('git' 'vala' 'cmake')
conflicts=("${_pkgname}")
provides=("${_pkgname}=${pkgver%%+}" 'DBUS-PLOTINUS')
source=("${_pkgname}::git+https://github.com/p-e-w/plotinus.git"
        'plotinus.sh')
sha256sums=('SKIP'
            '96fad14ace388edf164b5158adb507765b2bd1fe5c9435c41081ffa8ac2cec11')

pkgver() {
  cd "${_pkgname}"
  git describe --long --tags | sed -r "s/^v//;s/-/+/g"
}

build() {
    cd "${_pkgname}"
    cmake -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
  cd "${_pkgname}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 -t "${pkgdir}/etc/profile.d" "${srcdir}"/plotinus.sh
}