blob: d9f9f0891462358f889e16c4acbdb4581efde3fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
pkgname=ftree
pkgver=0.2.0
pkgrel=2
pkgdesc='Convert lists of files into tree(1)-like output'
url="https://github.com/thoughtbot/$pkgname"
arch=(i686 x86_64)
license=(MIT)
makedepends=(go)
source=("$pkgname-$pkgver.tar.gz::https://github.com/thoughtbot/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('eb182e84e169783b26079396bdb25da2')
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's|"github.com/calebthompson/ftree/tree"|"./tree"|' main.go
go build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname"
#install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|