summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Heinrich2019-10-08 19:37:08 +0200
committerJonas Heinrich2019-10-08 19:37:08 +0200
commit091cfef7c3aa29f6fb41f1e297397fefae8e618b (patch)
tree3687aeff97e0c4eafd0f6d15d1b525180f1a4ced
downloadaur-091cfef7c3aa29f6fb41f1e297397fefae8e618b.tar.gz
first commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD30
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b667cf3b669
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = img4lib-git
+ pkgdesc = Deal with img4 files in a decent manner
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/xerub/img4lib
+ arch = x86_64
+ license = unknown
+ depends = openssl-1.0
+ source = git+https://github.com/xerub/img4lib.git
+ sha512sums = SKIP
+
+pkgname = img4lib-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8a5029d4988
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Jonas Heinrich <onny@project-insanity.org>
+# Contributor: Jonas Heinrich <onny@project-insanity.org>
+
+pkgname=img4lib-git
+pkgver=1
+pkgrel=1
+pkgdesc="Deal with img4 files in a decent manner"
+arch=('x86_64')
+url="https://github.com/xerub/img4lib"
+depends=('openssl-1.0')
+license=('unknown')
+source=("git+https://github.com/xerub/img4lib.git")
+sha512sums=('SKIP')
+
+prepare() {
+ cd "${srcdir}/img4lib"
+ sed -i '131i$(VFSSOURCES:.c=.o): CFLAGS += -I/usr/include/openssl-1.0' Makefile
+ sed -i '131i$(VFSSOURCES:.c=.o): LDLIBS += -I/usr/lib/openssl-1.0' Makefile
+}
+
+build() {
+ cd "${srcdir}/img4lib"
+ git submodule update --init --recursive
+ make LDFLAGS="-L/usr/lib/openssl-1.0"
+}
+
+package() {
+ cd "${srcdir}/img4lib"
+ install -Dm755 img4 "${pkgdir}/usr/bin/img4"
+}