summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89a434a956e6ef3c60c1481bcb530f933ada2e14 (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
# Maintainer: Joseph Diza <josephm.diza@gmail.com>
pkgname=alphasort-git
pkgver=1.0.0
pkgrel=1
arch=('any')
pkgdesc='Alphabetizes word lists' 
url='https://github.com/jmdaemon/alphasort'
license=('AGPL3')
options=(!strip) # Mandatory as stripping the binary removes the sbcl runtime
depends=('sbcl')
optdepends=()
makedepends=('git' 'make')
source=("$pkgname::git+https://github.com/jmdaemon/alphasort")
provides=(alphasort)
conflicts=(alphasort)
sha512sums=("SKIP")

build() {
  cd "$pkgname"
  export DESTDIR="$pkgdir"
  export PREFIX="/usr"
  make build
}

package-bin() {
    BIN_DIR="$pkgdir"/usr/bin
    mkdir -p $BIN_DIR
    install bin/alphasort "$pkgdir/usr/bin/alphasort"
}

package() {
  cd "$pkgname"
  package-bin
}