blob: 961c1ebe6bb2f2fef6c70f8abb161b7c42b102a9 (
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
|
# Maintainer: Salamandar <felix@piedallu.me>
pkgname=livewallpaper
pkgdesc="OpenGL powered animated wallpapers with configuration utility, autostart, and application indicator."
url="https://launchpad.net/livewallpaper"
license=('GPL3')
pkgver=0.5.0
pkgrel=2
arch=('x86_64' 'i686')
makedepends=('intltool' 'xcftools' 'cmake' 'vala')
depends=(
'libpeas' 'upower' 'libappindicator-gtk3' 'gobject-introspection'
'python' 'python-cairo' 'python-opengl' 'glew'
)
source=(
'https://launchpad.net/livewallpaper/0.5/0.5.0/+download/livewallpaper-0.5.0.tar.gz'
)
sha256sums=(
'f4ce97a721015b135eb675915eb306c1fb256e680d480fe13e4fe6ca81c7e04e'
)
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# Add inexisting folder
sed -i '/add_subdirectory(debian)/d' CMakeLists.txt
# Disable doc generation (needs gtk-doc)
sed -i '/add_subdirectory(doc)/d' CMakeLists.txt
# Please use python3
sed -i '1i #!/usr/bin/python3' plugins/circles/circles.py
sed -i '1i #!/usr/bin/python3' plugins/photoslide/photoslide.py
# Fix old API
sed -i -e 's/fromstring/frombytes/g' plugins/photoslide/photoslide.py
sed -i -e 's/tostring/tobytes/g' plugins/photoslide/photoslide.py
}
build() {
cd "$srcdir/$pkgname-$pkgver/cmake"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ../
make DESTDIR="$pkgdir/"
}
package() {
cd "$srcdir/$pkgname-$pkgver/cmake"
make DESTDIR="$pkgdir/" install
}
|