Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
[unity-lens-photos] Use language packs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao-Long Chen committed Apr 5, 2014
1 parent e84cb2f commit c1a4e5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
25 changes: 6 additions & 19 deletions unity-lens-photos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
pkgname=unity-lens-photos
_actual_ver=1.0
_extra_ver=+14.04.20140318
_translations=20130418
pkgver=${_actual_ver}.daily14.03.18
pkgrel=1
pkgrel=2
pkgdesc="Unity lens for browsing photos"
arch=('any')
url="https://launchpad.net/unity-lens-photos"
Expand All @@ -14,23 +13,8 @@ groups=('unity')
depends=('python-httplib2' 'python-gobject' 'python-oauthlib' 'dee' 'libunity' 'libsoup' 'libsoup-gnome')
makedepends=('python' 'python-distutils-extra')
options=(!emptydirs)
source=("https://launchpad.net/ubuntu/+archive/primary/+files/unity-lens-photos_${_actual_ver}${_extra_ver}.orig.tar.gz"
"https://dl.dropboxusercontent.com/u/486665/Translations/translations-${_translations}-unity-lens-photos.tar.gz")
sha512sums=('8a61f8966dcec0aad69d6134bd67a211a6bc78bc81f997022b2950a556a89b019e9c1d28b5cb1840d85f513d7b8b105f2148903bb03b29647a4302330d4de61d'
'79ea835cd8c5b7c87d7129d51223ee1613589254ccde0be7d81bccd4f5916ba7a22b90fb54c18e766481a49bf6c0cbfe9dca719305627ffbe247aebb9888767f')

prepare() {
cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"

msg "Merging translations from ${_translations}"
rm -f po/LINGUAS po/*.pot
mv "${srcdir}"/po/*.pot po/
for i in "${srcdir}"/po/*.po; do
FILE=$(sed -n "s|.*/${pkgname}-||p" <<< ${i})
mv ${i} po/${FILE}
echo ${FILE%.*} >> po/LINGUAS
done
}
source=("https://launchpad.net/ubuntu/+archive/primary/+files/unity-lens-photos_${_actual_ver}${_extra_ver}.orig.tar.gz")
sha512sums=('8a61f8966dcec0aad69d6134bd67a211a6bc78bc81f997022b2950a556a89b019e9c1d28b5cb1840d85f513d7b8b105f2148903bb03b29647a4302330d4de61d')

package() {
cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"
Expand All @@ -47,6 +31,9 @@ package() {
rm "${pkgdir}/usr/share/unity/scopes/photos/facebook.scope"
rm "${pkgdir}/usr/share/unity/scopes/photos/flickr.scope"
rm "${pkgdir}/usr/share/unity/scopes/photos/picasa.scope"

# Use language packs
rm -r "${pkgdir}/usr/share/locale/"
}

# vim:set ts=2 sw=2 et:
1 change: 0 additions & 1 deletion unity-lens-photos/compare_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ source "$(dirname ${0})/../version_checker.sh"
echo -e "PKGBUILD version: ${_actual_ver}${_extra_ver}"
echo -e "Upstream version: $(get_launchpad_version ${pkgname})"
echo -e "Ubuntu version: $(get_ubuntu_version ${pkgname} ${1:-trusty})"
echo -e "Translations: ${_translations}"

0 comments on commit c1a4e5a

Please sign in to comment.