blob: e81dd81ebe4d6c2e40885a67bfe242ee8f4e18d5 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
# Maintainer: Sam Burgos < sam dot burgos1089 at gmail dot com >
# Many options will remain here as leftovers in case the packaging in Github resumes once again
pkgname=mintlocale
pkgver=1.5.1
pkgrel=1
pkgdesc="Language and locale selection tool"
arch=('any')
#url='https://github.com/linuxmint/mintlocale'
url="http://packages.linuxmint.com/pool/main/m/${pkgname}"
license=('GPL2')
depends=('accountsservice'
'gdk-pixbuf2'
'glib2'
'gtk3'
'iso-flag-png'
'python'
'python-gobject'
'xapps')
#source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
# "im_apt_check.patch"
# "install_remove_apt_check.patch"
# "mintlocale_apt_check.patch")
source=("${pkgname}-${pkgver}.tar.xz::${url}/${pkgname}_${pkgver}.tar.xz"
"im_apt_check.patch"
"install_remove_apt_check.patch"
"mintlocale_apt_check.patch")
sha256sums=('05125a2bc69cb2c6c838a67f07dc18f3c1d4df3fb02ef45d12d7922f822e7afd'
'3f59e0144e906e2e1b75ba429a1eeb0bc12986fdccf98d2da4692bed80741c8e'
'5ab364fc1756e0e91b97de81d48316ba6df77a938f5eee3ea7deaefb093e72e7'
'd3861405dcac12bf0637f47ef22c910f3f06e0d9545022191ecafbac818b9fd2')
## Packaging via Linuxmint repository
prepare() {
cd "${pkgname}"
# Remove the im desktop file and executable from this package,
# this is done since input methods are handled differently on Arch
rm -f 'usr/share/applications/mintlocale-im.desktop'
rm -f 'usr/bin/mintlocale-im'
#Added checking of APT in mintlocale so application can show proper configuration
#Patching "im.py" file
patch -Np1 -i ../im_apt_check.patch
#Patching "install_remove.py" file
patch -Np1 -i ../install_remove_apt_check.patch
#Patching "mintlocale.py" file
patch -Np1 -i ../mintlocale_apt_check.patch
}
package() {
cd ${pkgname}
cp -r usr "$pkgdir"
}
## Packaging via Github
#prepare() {
# cd "${pkgname}-${pkgver}"
# # Remove the im desktop file and executable from this package,
# # this is done since input methods are handled differently on Arch
# rm -f 'usr/share/applications/mintlocale-im.desktop'
# rm -f 'usr/bin/mintlocale-im'
# #Added checking of APT in mintlocale so application can show proper configuration
# #Patching "im.py" file
# patch -Np1 -i ../im_apt_check.patch
# #Patching "install_remove.py" file
# patch -Np1 -i ../install_remove_apt_check.patch
# #Patching "mintlocale.py" file
# patch -Np1 -i ../mintlocale_apt_check.patch
#}
#package() {
# cd "${pkgname}-${pkgver}"
# cp -R 'usr' "${pkgdir}"
#}
|