summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5b98638a297eed2fbbc4035907ef26183bc2cf6 (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
# Maintainer: Malte Bublitz <malte70+aur@mcbx.de>

pkgname=python-osdetect
pkgname_upstream=OSDetect
pkgver=1.2
pkgrel=2
pkgdesc="A Python module to detect the operating system."
arch=(any)
url="http://malte70.github.com/OSDetect"
license=("BSD")
depends=("python")
makedepends=()
source=("$pkgname-$pkgver.tar.gz::https://github.com/malte70/$pkgname_upstream/archive/$pkgver.tar.gz"
        "https://raw.githubusercontent.com/malte70/OSDetect/088231439ae877151a43bb7edddf1f5f7d9d994c/README.md")
sha256sums=('b2aed4191e74ed0deea2a39603744caac744124c9d15c6255ec1eac32074bd15'
            '9f4f36d47e9147c09c6e2cb53bd41d0149e37dc44da9fceeb16f9d6153fdcff4')

package() {
	cd "${srcdir}/$pkgname_upstream-${pkgver}"
	python setup.py install --root="${pkgdir}/" --optimize=1
	
	mkdir -p ${pkgdir}/usr/share/doc/$pkgname
	cp AUTHOR.md ${pkgdir}/usr/share/doc/$pkgname
	cp COPYING.md ${pkgdir}/usr/share/doc/$pkgname
	cp "${srcdir}/README.md" ${pkgdir}/usr/share/doc/$pkgname
	mkdir -p ${pkgdir}/usr/share/licenses/$pkgname
	cd ${pkgdir}/usr/share/licenses/$pkgname
	ln -s ../../doc/$pkgname/COPING.md COPYING
}