summaryrefslogtreecommitdiff
path: root/pcr/mugshot/PKGBUILD
blob: 75816cba8e2ebf45b89e85cdceac1f3c5dcde5d9 (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
# Maintainer: David P. <megver83@openmailbox.org>
# Contributor: twa022 <twa022@gmail.com>
# Contributor: Somasis <somasis@cryptolab.net>

pkgname=mugshot
pkgver=0.3.2
pkgrel=3
pkgdesc="Program to update personal user details"
arch=('any')
url="https://launchpad.net/mugshot"
license=('GPL3')
depends=( 'python-pexpect' 'python-dbus' 'python-cairo' 'python-gobject' )
makedepends=( 'python2-distutils-extra' )
optdepends=( 'cheese: webcam support'
             'pidgin: update buddy icon'
             'libreoffice: update user details'
             'accountsservice: user image management without ~/.face'
)
options=(!emptydirs)
sha256sums=('ee3debca912c6ddbba613531ab0856496dd247a1f084740ba48cbf42b364c7f0'
            '0cf536fa2ff25327f100d3fd13009cf56aab72cfd56dceda87579974722a212d'
            '787848e6ba8eae35d9d6f15918b16ce6227de632106480c36725e348e715326a')

source=("https://launchpad.net/mugshot/${pkgver%.*}/$pkgver/+download/mugshot-${pkgver}.tar.gz"
        "office-phone.patch"
        "missing_default_face.patch")

prepare() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    patch -p1 -i "${srcdir}"/office-phone.patch
    cd "${srcdir}"
    patch -Np1 -i "${srcdir}"/missing_default_face.patch
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    python2 setup.py install --root "${pkgdir}"
}