blob: ad16af980cbf17e77a66bd8ae8f4af4e6e917d4f (
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
|
# Maintainer: Oliver Kahrmann <oliver.kahrmann at gmail dot com>
# Contributor: Dan McCurry <dan.mccurry at linux dot com>
pkgname=oh-brother-git
pkgver=r42.b4cc7ed
pkgrel=1
pkgdesc="A simple cross-platform utility written in Python which can update Brother printer firmwares."
arch=('any')
url="https://github.com/CauldronDevelopmentLLC/oh-brother"
license=('GPL2')
makedepends=('git')
depends=('python-pyasn1' 'python-pysnmp' 'python-future')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/CauldronDevelopmentLLC/oh-brother.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
sed -i '1 s/python/python3/' oh-brother.py
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm755 "oh-brother.py" "${pkgdir}/usr/bin/oh-brother"
}
|