blob: 45232b2b29a4a6723e3a0fa6b1f6c293fb9deb9c (
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
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
# All my PKGBUILDs are managed at https://github.com/eli-schwartz/pkgbuilds
pkgname=muffin-git
pkgver=4.2.0.r2.gf0d02aa
pkgrel=1
pkgdesc="A window manager for GNOME"
arch=('i686' 'x86_64')
url="https://github.com/linuxmint/muffin"
license=('GPL')
depends=('cinnamon-desktop' 'gobject-introspection-runtime' 'libcanberra' 'libinput'
'libsm' 'libxkbcommon-x11' 'startup-notification' 'zenity')
makedepends=('git' 'intltool' 'gobject-introspection' 'gtk-doc' 'gnome-doc-utils')
provides=("${pkgname%-git}=${pkgver}")
conflicts=("${pkgname%-git}"
"cinnamon<4.2.0")
options=('!emptydirs')
source=("git+${url}.git")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}"/${pkgname%-git}
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}"/${pkgname%-git}
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}"/${pkgname%-git}
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/muffin \
--localstatedir=/var \
--disable-gtk-doc \
--disable-static \
--disable-schemas-compile \
--enable-compile-warnings=minimum
#https://bugzilla.gnome.org/show_bug.cgi?id=656231
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}"/${pkgname%-git}
make DESTDIR="${pkgdir}" install
# Remove unused stuff
make -C src DESTDIR="${pkgdir}" uninstall-binPROGRAMS uninstall-desktopfilesDATA
make -C src/tools DESTDIR="${pkgdir}" uninstall
make -C src/compositor/plugins DESTDIR="${pkgdir}" uninstall
make -C doc/man DESTDIR="${pkgdir}" uninstall
}
|