summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc7010bdab0b09309cd0e5681e2f36297c71220b (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
36
37
# Maintainer: hanss314 <hanss314@gmail.com>
pkgname=apush
pkgver=0.0.1
pkgrel=1
pkgdesc="Alternative Pathetic Useless SHell"
arch=('any')
url="https://gitlab.com/hanss314/apush"
license=('MIT')
groups=()
depends=()
makedepends=('make')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
noextract=()

prepare() {
  git clone "$url" "$pkgname-$pkgver"
  cd "$pkgname-$pkgver"
  cd src
  sed -i "s/DESTDIR = \/usr\/local\/bin/DESTDIR = \/usr\/bin/" Makefile
}
build() {
  cd "$pkgname-$pkgver/src"
  make
}

package() {
  cd "$pkgname-$pkgver/src"
  mkdir -p "$pkgdir/usr/bin"
  make DESTDIR="$pkgdir/usr/bin" install
}