my-pkgs/boost_toggle/PKGBUILD

47 lines
946 B
Bash

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname=turboboost-toggle
pkgver=0.1.0
pkgrel=1
epoch=
pkgdesc="toggle turboboost"
arch=(x86_64)
url=""
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("turboboost-toggle.tgz")
noextract=()
sha256sums=('84d94ebbe8e6501fd7848f7f4c6355e8deef197d32ebb104a5bb4d7c676ad2da')
validpgpkeys=()
prepare() {
true
}
build() {
cd "$pkgname"
cargo build --release
}
package() {
cd "$pkgname"
install -d "$pkgdir/usr/bin"
install -m755 "target/release/$pkgname" "$pkgdir/usr/bin/"
chmod u+s "$pkgdir/usr/bin/$pkgname"
}