summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee8ba3141b3e1a7543b18f23f006f1a000942129 (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
# Maintainer: Batuhan Baserdem <lastname dot firstname at gmail>

_srcname='rubicon-objc'
_name="python-${_srcname}"
pkgname="${_name}-git"
provides=("${_name}")
conflicts=("${_name}")
pkgver=0.3.1.r10.g8f87954
pkgrel=1
pkgdesc='A bridge interface between Python and Objective-C'
arch=('any')
url="https://github.com/beeware/${_srcname}"
license=('custom')
source=("git+${url}")
makedepends=('git' 'python-setuptools')
depends=('python')
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_srcname}"
    git describe --long --tags | sed 's|\([^-]*-g\)|r\1|;s|-|.|g;s|^v||g'
}

build() {
    cd "${srcdir}/${_srcname}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_srcname}"
    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
}