summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 337d9c89e4e6d9721498de832c4a60a444b884ec (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:	Ben Buhse <dotboy at firstnamelastname dot com>

_name=dotboy

pkgname="python-${_name}"
provides=()
conflicts=()
pkgver=0.3.1
pkgrel=2
pkgdesc='A Python script to help with dot file management'
arch=('any')
url="https://gitlab.com/bwbuhse/${_name}"
license=('MIT')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
makedepends=('python-setuptools')
depends=(
    'python>=3.8'
    'python-gitpython')
md5sums=('61edfbe4b5f2f639b1c2944d68649cba')

build() {
    cd "${srcdir}/${_name}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_name}-${pkgver}"

    # Run python setup function
    python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build

    cd "../.."
    # Install the licence
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_name}/LICENSE"
}