summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9ea6f7940a5cde8c021eefb55938a2228c6145e (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
50
51
52
53
54
55
56
57
58
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>
# Contributor: youngunix <zagazaw2004 () gmail ()>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: eht16 <enrico.troeger@uvena.de>
# Contributor: Addict7 <nicolasfloquet@gmail.com>
# Contributor: ksj <podhorsky.ksj@gmail.com>
# Contributor: yochananmarqos <mark -dot- wagie -at- proton -dot- me>

_pkgname=geany-plugins
pkgname=$_pkgname-git
pkgver=2.0.0.r50.ge00f819d
pkgrel=1
pkgdesc='Various plugins for Geany (git version)'
arch=(x86_64)
url='https://plugins.geany.org/'
license=(GPL-2.0-or-later GPL-3.0-or-later)
depends=(cairo ctpl discount enchant geany gdk-pixbuf2 glib2 glibc gpgme gtk3
         gtkspell3 libgit2 libxml2 libsoup lua51 libxml2 webkit2gtk-4.1 pango
         vte3)
makedepends=(git intltool python)
provides=($_pkgname)
conflicts=($_pkgname)
source=("$_pkgname::git+https://github.com/geany/geany-plugins.git")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname
  (
    set -o pipefail
    git describe --long --tag | sed -r 's/([^-]*-g)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

prepare() {
  cd $_pkgname
  autoreconf -fi
}

build() {
  cd $_pkgname
  export CFLAGS="-Wno-deprecated-declarations"
  ./configure --prefix=/usr --libexecdir=/usr/lib
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  depends+=(libcairo.so libenchant-2.so libgdk-3.so libgdk_pixbuf-2.0.so
            libgio-2.0.so libgit2.so libglib-2.0.so libgmodule-2.0.so
            libgobject-2.0.so libgpgme.so libgtk-3.so libpango-1.0.so
            libsoup-2.4.so libvte-2.91.so libwebkit2gtk-4.1.so libxml2.so)
  cd $_pkgname
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: