summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD34
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..964081d610a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = bsp-patch-git
+ pkgdesc = C implementation of the Binary Scripted Patch specification
+ pkgver = 115.b15e82e
+ pkgrel = 1
+ url = https://github.com/fstirlitz/c-bsp
+ arch = x86_64
+ license = custom:publicdomain
+ makedepends = make
+ makedepends = git
+ depends = glibc
+ source = git+ssh://git@github.com/fstirlitz/c-bsp
+ sha1sums = SKIP
+
+pkgname = bsp-patch-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ecf0a578c93
--- /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"
+}