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

Commit

Permalink
[unity-lens-video] 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 c1a4e5a commit 6d8915e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
22 changes: 3 additions & 19 deletions unity-lens-video/PKGBUILD
Expand Up @@ -3,9 +3,8 @@
pkgname=unity-lens-video
_actual_ver=0.3.15
_extra_ver=+13.10.20130920
_translations=20130418
pkgver=${_actual_ver}.daily13.09.20
pkgrel=101
pkgrel=102
pkgdesc="Unity Video lens"
arch=('i686' 'x86_64')
url="https://launchpad.net/unity-lens-videos"
Expand All @@ -16,23 +15,8 @@ provides=("unity-scope-video-remote=${pkgver}")
conflicts=('unity-scope-video-remote')
replaces=('unity-scope-video-remote')
groups=('unity')
source=("https://launchpad.net/ubuntu/+archive/primary/+files/unity-lens-video_${_actual_ver}${_extra_ver}.orig.tar.gz"
"https://dl.dropboxusercontent.com/u/486665/Translations/translations-${_translations}-unity-lens-video.tar.gz")
sha512sums=('8afe4c92d3c85345c9a6e448227b775305afd9605af7ad147a43bec3485334a1b15c4b2ee0620230d25866bf6712d2fc5507cf2a6e90818fa896dca1295913b8'
'cac380942dd525e405dcac5c348e0aac8c734cb5ee2d2ef034a1a4a0acbeb54dc5598dc40ab7e4b0fcbe28eec322663b15a1df09fc36aec091c1f959ec67b700')

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-video_${_actual_ver}${_extra_ver}.orig.tar.gz")
sha512sums=('8afe4c92d3c85345c9a6e448227b775305afd9605af7ad147a43bec3485334a1b15c4b2ee0620230d25866bf6712d2fc5507cf2a6e90818fa896dca1295913b8')

build() {
cd "${srcdir}/${pkgname}-${_actual_ver}${_extra_ver}"
Expand Down
1 change: 0 additions & 1 deletion unity-lens-video/compare_versions.sh
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 6d8915e

Please sign in to comment.