blob: 93489c1e5eb5b96ea481751c917b7f2e80ce998e (
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
|
pkgname=gnome-shell-extension-bing-wallpaper
pkgver=50
pkgrel=3
pkgdesc="Changes your wallpaper daily to the bing.com background image"
arch=(any)
url="https://github.com/neffo/bing-wallpaper-gnome-extension"
license=(GPL3)
depends=('gnome-shell>=40.0')
makedepends=(
glib2
gettext
intltool
jq
)
#_commit=b3f1357de10fc8c12c0eea6eb574a4b9c2716409
source=("git+https://github.com/neffo/bing-wallpaper-gnome-extension.git#tag=v${pkgver}")
sha256sums=('3b01b583fa657fd3042f10b90c9853fcdf87c98714599af61bd098331f832628')
prepare() {
cd bing-wallpaper-gnome-extension
}
build() {
cd bing-wallpaper-gnome-extension
glib-compile-schemas schemas/
intltool-extract --type=gettext/glade ui/prefsadw.ui
intltool-extract --type=gettext/glade ui/carousel4.ui
xgettext -k -k_ -kN_ --omit-header -o locale/BingWallpaper.pot ui/prefsadw.ui.h ui/carousel4.ui.h extension.js prefs.js blur.js utils.js --from-code=UTF-8
for D in locale/*; do
if [ -d "${D}" ]; then
msgfmt --template=BingWallpaper.pot --statistics --verbose -o "${D}/LC_MESSAGES/BingWallpaper.mo" "${D}/LC_MESSAGES/BingWallpaper.po" 2>> translations.txt
fi
done
rm -rf .??*
rm -rf BingWallpaper@ineffable-gmail.com.zip screenshot/* screenshot *.sh npm-debug.log icons/original/* *.h package.json *.po *.pot test.js
}
package() {
cd bing-wallpaper-gnome-extension
_uuid="$(cat metadata.json | jq --raw-output '.uuid')"
_dest_dir="/usr/share/gnome-shell/extensions/${_uuid}"
mkdir -p "${pkgdir}/${_dest_dir}"
cp -r * "${pkgdir}/${_dest_dir}"
}
|