blob: 8d4c5575199d32ce153f4ae6e2e1a5c1d6ebb015 (
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
|
pkgname="disappeer-git"
_projname="disappeer"
pkgver=r20.8152243
pkgrel=1
pkgdesc='A pure Python GUI app for GPG key management and peer-to-peer encrypted messaging over Tor'
license=('GPL')
arch=('any')
url='https://github.com/disappeerlabs/disappeer'
makedepends=('python' 'python-distribute')
depends=('gnupg' 'python' 'python-gnupg' 'python-stem' 'python-pysocks' 'tk')
source=(
'git+https://github.com/disappeerlabs/disappeer'
'10-images_dir_path.patch')
md5sums=('SKIP' '40567ee80b6b1c4b237ff31d9cac2d28')
pkgver() {
cd "${srcdir}/${_projname}"
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
}
build() {
cd "${srcdir}/${_projname}"
patch -p1 -i "${srcdir}/10-images_dir_path.patch"
python setup.py build
}
package() {
cd "${srcdir}/${_projname}"
python setup.py install --root="${pkgdir}" --optimize=1
install -dm755 "${pkgdir}/usr/share/${_projname}/images/"
for img in `ls ${srcdir}/${_projname}/${_projname}/images/*.png ${srcdir}/${_projname}/${_projname}/images/*.gif`; do
install -Dm644 "$img" "${pkgdir}/usr/share/${_projname}/images/"
done
}
|