aboutsummaryrefslogtreecommitdiffstats
path: root/main/ghi/APKBUILD
blob: 90ab4207f9ac3f499d26ff4d3e6bc5b620973320 (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: Eivind Uggedal <eivind@uggedal.com>
pkgname=ghi
pkgver=0.9.3
pkgrel=0
pkgdesc="GitHub Issues on the command line"
url="https://github.com/stephencelis/ghi"
arch="noarch"
license="MIT"
depends="ruby ncurses"
makedepends=""
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/stephencelis/ghi/archive/$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$_builddir"

	sed -n '/(<stephen@stephencelis.com>).$/,$p' README.markdown > LICENSE
}

package() {
	cd "$_builddir"

	install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
	install -D -m644 man/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="e6670a27bcbd09f6600a4efd1d56b4c4  ghi-0.9.3.tar.gz"
sha256sums="1b58c7ec6e9339c44175808719694d7ee21cbd254d3a2e6d31a70d31027e9bea  ghi-0.9.3.tar.gz"
sha512sums="660dfb0cb6db7df0c5c20821b9b968240dd96c0ea2143b15049aa1f2a9e40d071de16f971c1d5e61b5c666f76b078d639e0fca8bac8ff0135ea84d8963bcb8af  ghi-0.9.3.tar.gz"