summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Playfair Cal2019-08-24 14:20:20 +1000
committerDaniel Playfair Cal2019-08-24 14:20:20 +1000
commit335c6e41354d348a6c6c5ed706f592590a4fb436 (patch)
tree918cef799e22fc2ce4e262849d339217bbb77dbb /PKGBUILD
downloadaur-mate-panel-git.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dcb7e13e990
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Daniel Playfair Cal <Daniel.playfair.cal@gmail.com>
+# Contributor: Brad Fanella <cesura@archlinux.org>
+# Contributor: Martin Wimpress <code@flexion.org>
+
+pkgname=mate-panel-git
+_pkgname=mate-panel
+sha256sums=('SKIP')
+sha256sums=('SKIP')
+provides=(mate-panel)
+pkgver=v1.23.1.r13.g950caf8a
+pkgrel=1
+pkgdesc="The MATE Panel"
+url="https://mate-desktop.org"
+arch=('x86_64')
+license=('GPL')
+depends=('dbus-glib' 'libwnck3' 'libcanberra' 'libmateweather' 'libsm' 'mate-menus' 'mate-desktop' 'gtk-layer-shell')
+makedepends=('mate-common' 'yelp-tools' 'intltool' 'itstool' 'gobject-introspection' 'gtk-layer-shell')
+source=("git+https://github.com/mate-desktop/mate-panel")
+groups=('mate')
+conflicts=('mate-panel-gtk3')
+replaces=('mate-panel-gtk3')
+sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir"
+}
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${_pkgname}"
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/${_pkgname} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-introspection \
+ --enable-wayland
+
+ #https://bugzilla.gnome.org/show_bug.cgi?id=656231
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+ make
+}
+
+package() {
+ cd "${_pkgname}"
+ make DESTDIR="${pkgdir}" install
+}