-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPKGBUILD
More file actions
47 lines (39 loc) · 1.46 KB
/
PKGBUILD
File metadata and controls
47 lines (39 loc) · 1.46 KB
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
40
41
42
43
44
45
46
47
# Maintainer: Emerson Soares <remenoscodes@gmail.com>
pkgname=git-native-issue
pkgver=1.3.3
pkgrel=1
pkgdesc="Distributed issue tracking using Git's native data model"
arch=('any')
url="https://github.com/remenoscodes/git-native-issue"
license=('GPL2')
depends=('git' 'jq')
makedepends=()
optdepends=(
'github-cli: for GitHub bridge functionality'
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/remenoscodes/git-native-issue/releases/download/v${pkgver}/git-native-issue-v${pkgver}.tar.gz")
sha256sums=('40b1cb3f92c457452e201e23e7327d53896bba1c09da8519467c7f402f35075e')
package() {
cd "${srcdir}/git-native-issue-v${pkgver}"
# Install binaries
install -d "${pkgdir}/usr/bin"
install -m755 bin/git-issue* "${pkgdir}/usr/bin/"
# Install documentation
install -d "${pkgdir}/usr/share/doc/${pkgname}"
install -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/"
install -m644 ISSUE-FORMAT.md "${pkgdir}/usr/share/doc/${pkgname}/"
install -m644 LICENSE "${pkgdir}/usr/share/doc/${pkgname}/"
# Install man pages if they exist
if [ -d doc ]; then
install -d "${pkgdir}/usr/share/man/man1"
install -m644 doc/*.1 "${pkgdir}/usr/share/man/man1/" 2>/dev/null || true
fi
}
check() {
cd "${srcdir}/git-native-issue-v${pkgver}"
# Basic sanity checks
[ -f bin/git-issue ] || return 1
[ -x bin/git-issue ] || return 1
# Check version
./bin/git-issue version | grep -q "${pkgver}" || return 1
}