summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eea6349b367c37041a7a23b94466ed3d14bf7def (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
# Maintainer: Limao Luo <luolimao+AUR@gmail.com>
# Maintainer: Niko Cantero <vextium at gmail dot com>
# (Added from libxfce4util package)
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: tobias <tobias@archlinux.org>

_pkgname=libxfce4util
pkgname="${_pkgname}-git"
pkgver=4.17.2.r22.ge2f2a6e
pkgrel=1
pkgdesc="Basic utility non-GUI functions for Xfce"
arch=(i686 x86_64)
url=http://gitlab.xfce.org/xfce/${_pkgname}/
license=(GPL2)
groups=(xfce4-git)
depends=(glib2)
makedepends=('git' 'xfce4-dev-tools' 'gobject-introspection' 'vala')
provides=(${_pkgname-git}=${pkgver%+*})
conflicts=(${_pkgname%})
source=(git+https://gitlab.xfce.org/xfce/${_pkgname})
sha256sums=('SKIP')
sha256sums=('SKIP')

pkgver() {
    cd ${srcdir}/${_pkgname}
    git describe | sed 's/^libxfce4util-//;s/-/.r/;s/-/./g'
}

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

  ./autogen.sh \
      --prefix=/usr \
      --sysconfdir=/etc \
      --sbindir=/usr/bin \
      --libexecdir=/usr/lib \
      --localstatedir=/var \
      --disable-static \
      --disable-debug
  make
}

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