blob: 811783578c7a136577cdd0cbe614c4aa6402c811 (
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
45
46
47
48
49
|
# Maintainer: Felipe Morales <hel.sheep@gmail.com>
_pkgname=plotinus
pkgname=$_pkgname-git
pkgver=r16.04f7876
pkgrel=1
pkgdesc="A searchable command palette in every modern GTK+ application"
arch=(any)
url="http://github.com/p-e-w/plotinus"
license=('GPL')
groups=()
makedepends=('git' 'vala' 'cmake')
depends=('gtk3')
source=(
'git+https://github.com/p-e-w/plotinus.git#branch=master'
'plotinus.sh'
)
md5sums=(
'SKIP'
'6ad4e0036eba28de03cee657287dbfe2'
)
pkgver() {
cd "$srcdir/$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/$_pkgname"
cmake .
make
}
package() {
cd "$srcdir"
mkdir -p "$pkgdir/etc/profile.d"
install -m 644 plotinus.sh "$pkgdir/etc/profile.d"
cd "$_pkgname"
mkdir -p "$pkgdir/usr/lib"
mkdir -p "$pkgdir/usr/share/glib-2.0/schemas/"
install -m 644 libplotinus.so "$pkgdir/usr/lib"
install -m 644 data/com.worldwidemann.plotinus.gschema.xml "$pkgdir/usr/share/glib-2.0/schemas/"
}
# vim:set ts=2 sw=2 et:
|