summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gregoratto2019-01-17 23:33:29 +1100
committerStephen Gregoratto2019-01-17 23:33:29 +1100
commitbb16a0e66dbf56bd1ecec9b3fcbab25dea81668d (patch)
treef84f062002a0a0eb5ae2e855d4d78fd0c67eef7f
downloadaur-bb16a0e66dbf56bd1ecec9b3fcbab25dea81668d.tar.gz
Initial release.
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
-rw-r--r--sfeed-git.patch21
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..803e4527a63
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = sfeed-git
+ pkgdesc = RSS and Atom parser
+ pkgver = 0.9.7.r0.ge59ad05
+ pkgrel = 1
+ url = https://git.codemadness.org/sfeed
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ arch = armv7h
+ license = ISC
+ makedepends = git
+ depends = curl
+ provides = sfeed
+ source = sfeed::git+git://git.codemadness.org/sfeed
+ source = sfeed-git.patch
+ sha256sums = SKIP
+ sha256sums = 9057f4b96368207c382a2a4b022a5a2f5bcac733f55225347b6b6dbc46fa6edb
+
+pkgname = sfeed-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e84d4db32ee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: KingofToasters <themanhimself at sgregoratto dot me>
+pkgname=sfeed-git
+pkgver=0.9.7.r0.ge59ad05
+pkgrel=1
+pkgdesc='RSS and Atom parser'
+url='https://git.codemadness.org/sfeed'
+license=('ISC')
+provides=('sfeed')
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+makedepends=('git')
+depends=('curl')
+source=("${pkgname%-git}::git+git://git.codemadness.org/sfeed"
+ "sfeed-git.patch")
+sha256sums=('SKIP'
+ '9057f4b96368207c382a2a4b022a5a2f5bcac733f55225347b6b6dbc46fa6edb')
+
+pkgver() {
+ cd "${pkgname%-git}"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare(){
+ cd "${pkgname%-git}"
+ patch -Np1 -i "${srcdir}/sfeed-git.patch"
+}
+
+build() {
+ cd "${pkgname%-git}"
+ make
+}
+
+package() {
+ cd "${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENCE"
+}
diff --git a/sfeed-git.patch b/sfeed-git.patch
new file mode 100644
index 00000000000..359627a00f4
--- /dev/null
+++ b/sfeed-git.patch
@@ -0,0 +1,21 @@
+Chunk 1: Change PREFIX and MANPREFIX variables
+Chunk 2: Append local (C|CXX|LD)FLAGS, change _BSD_SOURCE define
+ to _DEFAULT_SOURCE
+diff -ura sfeed.orig/config.mk sfeed.new/config.mk
+--- sfeed.orig/config.mk 2019-01-17 23:01:44.402627527 +1100
++++ sfeed.new/config.mk 2019-01-17 23:14:29.356401258 +1100
+@@ -14,11 +14,11 @@
+ #LDFLAGS =
+
+ # optimized
+-CFLAGS = -O2 -std=c99
+-LDFLAGS = -s
++CFLAGS += -O2 -std=c99
++LDFLAGS += -s
+
+ # optimized static
+ #CFLAGS = -static -O2 -std=c99
+ #LDFLAGS = -static -s
+
+-CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
++CPPFLAGS += -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE