summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f28b0a45ce4df75fe35e6033662a48a4262457a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: yantene <contact@yantene.net>
pkgname=anyenv
pkgver=1.1.1
pkgrel=1
pkgdesc="All in one for **env"
arch=('any')
url="https://github.com/anyenv/anyenv"
license=('MIT')
depends=()
conflicts=()
install="anyenv.install"
source=("https://github.com/anyenv/anyenv/archive/v${pkgver}.tar.gz")
md5sums=('17ffc5b12ffcd5653178b7486082fd4a')

build() {
    cd $srcdir
    tar -x --strip-components 1 -zf "v$pkgver.tar.gz"
}

package() {
  cd $srcdir

  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/usr/share/doc/$pkgname
  mkdir -p $pkgdir/usr/share/licenses/$pkgname
  mkdir -p $pkgdir/usr/lib/anyenv/completions
  mkdir -p $pkgdir/usr/lib/anyenv/libexec

  install -m 644 ./README.md $pkgdir/usr/share/doc/$pkgname
  install -m 644 ./LICENSE.txt $pkgdir/usr/share/licenses/$pkgname
  install -m 644 ./completions/* $pkgdir/usr/lib/anyenv/completions/
  install -m 755 ./libexec/* $pkgdir/usr/lib/anyenv/libexec/

  ln -s /usr/lib/anyenv/libexec/anyenv $pkgdir/usr/bin/
}