summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7474fdb9f13c0480b71337dffd57ab5992da3734 (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
pkgname=libdmapsharing-git
_pkgname=libdmapsharing
pkgver=3.9.7+4+g9ae04e2
pkgrel=1
pkgdesc="A library that implements the DMAP family of protocols"
arch=(x86_64)
url="https://www.flyn.org/projects/libdmapsharing/index.html"
license=(LGPL2.1)
depends=('libsoup' 'avahi' 'gst-plugins-base-libs' 'gdk-pixbuf2')
makedepends=('git' 'gtk-doc' 'gobject-introspection')
provides=('libdmapsharing')
conflicts=('libdmapsharing')
source=("git+https://gitlab.gnome.org/GNOME/libdmapsharing.git")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/^LIBDMAPSHARING_//;s/_/./g;s/-/+/g'
}

prepare() {
  cd $_pkgname
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd $_pkgname
  ./configure --prefix=/usr --with-mdns=avahi --enable-gtk-doc
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

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