diff options
author | Jakub Kądziołka | 2019-06-01 22:04:36 +0200 |
---|---|---|
committer | Jakub Kądziołka | 2019-06-01 22:04:36 +0200 |
commit | a68acf610b82e28f56a9c4997a509b6c96202bcc (patch) | |
tree | dbd137816c497bd786a12239f85fe2a05e72f523 /PKGBUILD | |
download | aur-a68acf610b82e28f56a9c4997a509b6c96202bcc.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ecf0a578c93d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Jakub Kądziołka <kuba@kadziolka.net> + +pkgname=bsp-patch-git +pkgdesc="C implementation of the Binary Scripted Patch specification" +pkgver=115.b15e82e +pkgrel=1 +arch=(x86_64) +url="https://github.com/fstirlitz/c-bsp" +license=('custom:publicdomain') +depends=(glibc) +makedepends=(make git) +source=(git+ssh://git@github.com/fstirlitz/c-bsp) +sha1sums=(SKIP) + +pkgver() { + cd c-bsp + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} + +prepare() { + # Patch the Makefile to allow setting LDFLAGS from the environment + sed '/LDFLAGS :=/s/$/ ${LDFLAGS}/' -i c-bsp/Makefile +} + +build() { + cd c-bsp + make +} + +package() { + cd c-bsp + make install DESTDIR="$pkgdir" prefix="/usr" + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} |