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

pkgname=mugshot
pkgver=0.3.2
pkgrel=3.parabola2
pkgdesc="Program to update personal user details"
arch=('any')
url="https://launchpad.net/mugshot"
license=('GPL3')
depends=( 'python2-pexpect' 'python2-dbus' 'python2-cairo' 'python2-gobject' 'accountsservice')
makedepends=( 'python2-distutils-extra' )
optdepends=( 'cheese: webcam support'
             'pidgin: update buddy icon'
             'libreoffice: update user details')
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}"
}