diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6aa2d52c8769 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = libdmapsharing-git + pkgdesc = A library that implements the DMAP family of protocols + pkgver = 3.9.7+4+g9ae04e2 + pkgrel = 1 + url = https://www.flyn.org/projects/libdmapsharing/index.html + arch = x86_64 + license = LGPL2.1 + makedepends = git + makedepends = gtk-doc + makedepends = gobject-introspection + depends = libsoup + depends = avahi + depends = gst-plugins-base-libs + depends = gdk-pixbuf2 + provides = libdmapsharing + conflicts = libdmapsharing + source = git+https://gitlab.gnome.org/GNOME/libdmapsharing.git + sha512sums = SKIP + +pkgname = libdmapsharing-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7474fdb9f13c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |