diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 11 insertions, 20 deletions
@@ -1,34 +1,27 @@ # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org> pkgname=battlestar -pkgver=0.6.1 +pkgver=0.7.0 pkgrel=1 pkgdesc='Programming language for creating tiny executables' -arch=('x86_64') +arch=(x86_64) url='https://github.com/xyproto/battlestar' -license=('MIT') -makedepends=('go-pie' 'git') -depends=('yasm' 'gcc') +license=(BSD) +makedepends=(git go) +depends=(gcc yasm) optdepends=('elfkickers: for smaller executables' 'dosbox: for running 16-bit programs' - 'qemu-arch-extra: for running bootable kernels' - 'nasm: for ndisasm and com2bts') -source=("git+$url.git#tag=$pkgver") -md5sums=('SKIP') + 'nasm: for ndisasm and com2bts' + 'qemu-arch-extra: for running bootable kernels') +source=("git+$url#commit=deb78a26b141531abe6cdc5cd980691e3a41ec46") +b2sums=('SKIP') build() { - cd $pkgname/src - go build \ - -gcflags "all=-trimpath=$PWD" \ - -asmflags "all=-trimpath=$PWD" \ - -ldflags "-extldflags $LDFLAGS" \ - -o battlestarc . - make -C .. + make -C $pkgname } package() { - cd "$pkgname" - + cd $pkgname make DESTDIR="$pkgdir" install install -d "$pkgdir/usr/share/doc/$pkgname" cp -r samples "$pkgdir/usr/share/doc/$pkgname/" @@ -39,5 +32,3 @@ package() { install -Dm644 TUTORIAL.md "$pkgdir/usr/share/doc/$pkgname/TUTORIAL.md" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } - -# vim: ts=2 sw=2 et |