diff options
author | jahway603 | 2020-07-26 19:25:07 -0400 |
---|---|---|
committer | jahway603 | 2020-07-26 19:25:07 -0400 |
commit | aeff0fd8a5430a06c5224b252ef2806723b31031 (patch) | |
tree | b707f837b48d9e5d9bd7ac7c9bb85bc426aa8b84 /PKGBUILD | |
download | aur-aeff0fd8a5430a06c5224b252ef2806723b31031.tar.gz |
Initial Huhnitor AUR package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..075507656f0d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Jah Way <jahway603 at protonmail dot com> + +pkgname=huhnitor +pkgver=1.1.2 +pkgrel=1 +pkgdesc='' +url='https://github.com/SpacehuhnTech/Huhnitor' +arch=('x86_64') +license=('MIT') +makedepends=('rust') +source=("https://github.com/SpacehuhnTech/Huhnitor/archive/$pkgver.tar.gz") +sha256sums=('0e29996f223fbb8c04121b775897f83db980e349d1e14d50b86e0067ec875222') + +build() { + tar xzvf $pkgver.tar.gz + cd "Huhnitor-$pkgver" + cargo build --release +} + +package() { + cd "Huhnitor-$pkgver" + + install -d "${pkgdir}/opt/${pkgname}" + install -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -d "${pkgdir}/usr/bin" + + install -m 755 target/release/${pkgname} "${pkgdir}/opt/${pkgname}" + install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}" + + ln -s /opt/${pkgname}/${pkgname} "${pkgdir}/usr/bin" +} + |