mirror of
https://github.com/archlinux/aur.git
synced 2026-02-13 20:13:31 +01:00
Cleaned up PKGBUILD per comment on AUR
This commit is contained in:
parent
e567dfe868
commit
db42d60e13
1 changed files with 8 additions and 8 deletions
16
PKGBUILD
16
PKGBUILD
|
|
@ -15,21 +15,21 @@ source=("git+https://github.com/justinmdickey/goplaying.git")
|
|||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/${pkgname%-git}"
|
||||
cd "${pkgname%-git}"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${pkgname%-git}"
|
||||
cd "${pkgname%-git}"
|
||||
go build -v -o goplaying .
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/${pkgname%-git}"
|
||||
install -Dm755 goplaying "$pkgdir/usr/bin/goplaying"
|
||||
}
|
||||
|
||||
# Optional: Include necessary docs, like LICENSE if relevant
|
||||
install_license() {
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname%-git}"
|
||||
install -Dm755 goplaying "$pkgdir/usr/bin/goplaying"
|
||||
install_license
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue