blob: 0d421858c9c37a8db52e1643354fa5091149a6be (
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
37
38
39
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Simon Legner <Simon.Legner@gmail.com>
pkgname=run-one
pkgver=1.18
pkgrel=2
pkgdesc="Run just one instance of a command and its args at a time"
arch=('any')
url="https://github.com/dustinkirkland/run-one"
license=('GPL-3.0-or-later')
depends=('sh')
source=("$pkgname-$pkgver.tgz::${url}/archive/refs/tags/${pkgver}.tar.gz"
"fix-pgrep.patch")
sha256sums=('6cbc8e375701cc231c6247be676d6201aa6d6e716a448f1603abb949d370bcae'
'f59fcd60e04d85a7835bbbb51ae31b5a87ff8a01c621bb1035e8e45006cefa77')
prepare() {
cd "$pkgname-$pkgver" || exit
patch < ../fix-pgrep.patch
}
package() {
cd "$pkgname-$pkgver" || exit
install -Dvt "$pkgdir/usr/bin/" \
run-one \
keep-one-running \
run-one-constantly \
run-one-until-failure \
run-one-until-success \
run-this-one
install -Dvm644 "$pkgname.1" -t "${pkgdir}/usr/share/man/man1/"
install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|