forked from mhoush/crux-i686
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
drwxr-xr-x root/root usr/ | ||
drwxr-xr-x root/root usr/bin/ | ||
-rwxr-xr-x root/root usr/bin/fzf | ||
-rwxr-xr-x root/root usr/bin/fzf-tmux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6687e6f61baae4678490643456c362ff fzf-0.44.1.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Description: a general-purpose command-line fuzzy finder | ||
# URL: https://github.com/junegunn/fzf/ | ||
# Maintainer: Jose Beneyto, sepen at crux dot nu | ||
# Depends on: go | ||
|
||
name=fzf | ||
version=0.44.1 | ||
release=1 | ||
source=(https://github.com/junegunn/fzf/archive/$version/$name-$version.tar.gz) | ||
|
||
build() { | ||
cd $name-$version | ||
|
||
export CGO_CFLAGS="${CFLAGS}" | ||
export CGO_CXXFLAGS="${CXXFLAGS}" | ||
export CGO_CPPFLAGS="${CPPFLAGS}" | ||
export CGO_LDFLAGS="${LDFLAGS}" | ||
|
||
export GOPATH="$(pwd)/go" | ||
|
||
go build \ | ||
-trimpath \ | ||
-buildmode=pie \ | ||
-mod=readonly \ | ||
-modcacherw \ | ||
-o $name . | ||
go build -o $name . | ||
|
||
install -D -m 0755 $name $PKG/usr/bin/$name | ||
install -D -m 0755 bin/$name-tmux $PKG/usr/bin/$name-tmux | ||
} |