summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29659f1683fbb8968e37f61edd5cfbb3c85ff893 (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
# Maintainer:  Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgbase="libepc"
pkgname=("${pkgbase}" "${pkgbase}-docs")
pkgver=0.4.6
pkgrel=5
pkgdesc="Easy Publish and Consume Library"
arch=('x86_64' 'i686')
url="https://gitlab.gnome.org/Archive/libepc"
license=('LGPL-2.1-or-later')
makedepends=('avahi>=0.6' 'glib2>=2.36' 'glib2-devel>=2.36' 'gnome-common'
             'gnutls>=1.4' 'gtk3' 'gtk-doc>=1.4' 'intltool>=0.35' 'libsoup>=2.2')
_pkgsrc="${pkgbase}-${pkgver}"
source=("${_pkgsrc}.tar.xz::https://download.gnome.org/sources/${pkgbase}/${pkgver%.*}/${_pkgsrc}.tar.xz")
sha256sums=('215990847a8526c85774cb74fbcaea4c46866df58281b21dce5a62aac5da7ae8')

build() {
  cd "${srcdir}/${_pkgsrc}"
  libtoolize
  autoreconf -vfi
  ./configure \
    --prefix='/usr' \
    --enable-gtk-doc
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package_libepc() {
  depends=('avahi>=0.6' 'glib2>=2.36' 'glibc' 'gnutls>=1.4' 'gtk3'
           'libsoup>=2.2' 'util-linux-libs')

  cd "${srcdir}/${_pkgsrc}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 "README"    "${pkgdir}/usr/share/doc/${pkgbase}/README"
  install -Dm644 "NEWS"      "${pkgdir}/usr/share/doc/${pkgbase}/NEWS"
  install -Dm644 "ChangeLog" "${pkgdir}/usr/share/doc/${pkgbase}/CHANGELOG"
  install -Dm644 "AUTHORS"   "${pkgdir}/usr/share/doc/${pkgbase}/AUTHORS"
  install -Dm644 "COPYING"   "${pkgdir}/usr/share/licenses/${pkgbase}/COPYING"
  
  cd "${pkgdir}/usr/share"
  rm -rf "gtk-doc"
}

package_libepc-docs() {
  pkgdesc+=" (documentation)"
  arch=('any')

  cd "${srcdir}/${_pkgsrc}/docs/reference/${pkgbase}"
  make DESTDIR="${pkgdir}" install
}