summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorultraviolet2016-04-19 20:49:53 -0600
committerultraviolet2016-04-19 20:50:27 -0600
commit6886491633b1a519a710cb57a8f7fa9c52d91ec5 (patch)
tree32b3f92e9821c38a840ff562fc36d4732342930d
downloadaur-6886491633b1a519a710cb57a8f7fa9c52d91ec5.tar.gz
initial pkgbuild, with patch for weird problem
-rw-r--r--.SRCINFO21
-rw-r--r--0001-add-missing-fcntl-argument.patch11
-rw-r--r--PKGBUILD37
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..435cfa8c152
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Wed Apr 20 02:50:14 UTC 2016
+pkgbase = libst2205-git
+ pkgdesc = Library for interacting with hacked st2205 and similar digital photo frames
+ pkgver = r1.a1d9a6b
+ pkgrel = 1
+ url = https://github.com/neophob/libst2205
+ arch = i686
+ arch = x86_64
+ license = GPLv2+
+ makedepends = git
+ makedepends = gtk-doc
+ depends = systemd
+ depends = libgudev
+ source = git+https://github.com/neophob/libst2205.git
+ source = 0001-add-missing-fcntl-argument.patch
+ md5sums = SKIP
+ md5sums = 527ba0abf45405dc34a498533aa70b60
+
+pkgname = libst2205-git
+
diff --git a/0001-add-missing-fcntl-argument.patch b/0001-add-missing-fcntl-argument.patch
new file mode 100644
index 00000000000..f761de90c07
--- /dev/null
+++ b/0001-add-missing-fcntl-argument.patch
@@ -0,0 +1,11 @@
+--- splice.c 2016-04-19 20:37:29.238055553 -0600
++++ splice.c.fixed 2016-04-19 20:38:16.523286227 -0600
+@@ -67,7 +67,7 @@
+ }
+ read(f2,buff+offset,size);
+ close(f2);
+- f1=open(argv[1],O_CREAT|O_TRUNC|O_WRONLY);
++ f1=open(argv[1],O_CREAT|O_TRUNC|O_WRONLY,0644);
+ if (f1<0) {
+ perror("Couldn't open file1 for writing.\n");
+ exit(1);
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..55a43a05be1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: ultraviolet <ultravioletnanokitty@gmail.com>
+
+pkgname=libst2205-git
+_pkgname="libst2205"
+pkgver=r1.a1d9a6b
+pkgrel=1
+pkgdesc="Library for interacting with hacked st2205 and similar digital photo frames"
+arch=('i686' 'x86_64')
+url="https://github.com/neophob/libst2205"
+license=('GPLv2+')
+depends=('systemd' 'libgudev')
+makedepends=('git' 'gtk-doc')
+source=("git+https://github.com/neophob/libst2205.git"
+ "0001-add-missing-fcntl-argument.patch")
+md5sums=('SKIP'
+ '527ba0abf45405dc34a498533aa70b60')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+ patch < ../../0001-add-missing-fcntl-argument.patch
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make all
+}
+
+package() {
+ cd "$srcdir/$_pkgname/libst2205"
+ install -Dm0755 libst2205.so "${pkgdir}/usr/lib/libst2205.so.1"
+ install -Dm0644 st2205.h "${pkgdir}/usr/include/st2205.h"
+}