[arch-commits] Commit in deepin-artwork-themes/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Nov 24 06:48:56 UTC 2015
Date: Tuesday, November 24, 2015 @ 07:48:56
Author: fyan
Revision: 147606
upgpkg: deepin-artwork-themes 15.10.1-2
fix default wallpaper
Modified:
deepin-artwork-themes/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-11-24 06:46:59 UTC (rev 147605)
+++ PKGBUILD 2015-11-24 06:48:56 UTC (rev 147606)
@@ -5,7 +5,8 @@
pkgname=deepin-artwork-themes
pkgver=15.10.1
-pkgrel=1
+_desktopbaserev=6cd46627bb62ce820991aa53439be8142b523ad8
+pkgrel=2
pkgdesc='Deepin artwork themes'
arch=('any')
license=('LGPL3')
@@ -13,13 +14,16 @@
depends=('deepin-icon-theme')
makedepends=('python2' 'git')
groups=('deepin')
-source=("git+https://github.com/linuxdeepin/deepin-artwork-themes.git#tag=$pkgver")
-sha256sums=('SKIP')
+source=("git+https://github.com/linuxdeepin/deepin-artwork-themes.git#tag=$pkgver"
+ "git+https://github.com/linuxdeepin/deepin-desktop-base.git#commit=$_desktopbaserev")
+sha256sums=('SKIP'
+ 'SKIP')
prepare() {
cd $pkgname
- # fix python version
- find -iname "*.py" | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
+
+ # fix default background url
+ sed -i 's#^BackgroundFile=.*$#BackgroundFile=file:///usr/share/backgrounds/deepin_default_background.jpg#' themes/Deepin/theme.ini
}
build() {
@@ -30,4 +34,7 @@
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
+
+ install -d "${pkgdir}"/usr/share/backgrounds/
+ cp "${srcdir}"/deepin-desktop-base/backgrounds/desktop.jpg "${pkgdir}"/usr/share/backgrounds/deepin_default_background.jpg
}
More information about the arch-commits
mailing list