[alpine-aports] [PATCH] testing/irc.c: new aport
Export this patch
https://c9x.me/irc
A minimal curses IRC client
---
testing/irc.c/APKBUILD | 33 +++++++++++++++++++++++++++++++++
testing/irc.c/Makefile | 12 ++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 testing/irc.c/APKBUILD
create mode 100644 testing/irc.c/Makefile
diff --git a/testing/irc.c/APKBUILD b/testing/irc.c/APKBUILD
new file mode 100644
index 0000000..95dbb7e
--- /dev/null
+++ b/testing/irc.c/APKBUILD
@@ -0,0 +1,33 @@
+ # Contributor: xcko shrdlu <xcko@bitmessage.ch>
+ # Maintainer: xcko shrdlu <xcko@bitmessage.ch>
+ pkgname=irc.c
+ pkgver=1
+ pkgrel=0
+ pkgdesc="A minimal curses IRC client"
+ url="http://c9x.me/irc"
+ arch="all"
+ license="CC0"
+ depends="ncurses"
+ depends_dev=""
+ makedepends="ncurses-dev"
You don't need to specify depends for library used during the build
process. abuild automatically detects them.
Other than this it looks good.
Thanks!
|_eo
+ install=""
+ subpackages=""
+ source="http://c9x.me/irc/src/irc.c Makefile"
+
+ builddir="$srcdir"
+ build() {
+ cd "$builddir"
+ make
+ }
+
+ package() {
+ cd "$builddir"
+ install -D -m755 "${srcdir}"/irc "${pkgdir}"/usr/bin/irc
+ }
+
+ md5sums="97d562016443a1b1d27e2e5a180ef90a irc.c
+ 1942602dbad41cbd04fbe1cd43712797 Makefile"
+ sha256sums="1ad40aebbc0d6b0fbc3f596718917a9a19aa016569f41d8d0e01905ad3f8a239 irc.c
+ e032ae0e4c57c99142f4ca21d0a60d080c8d7be7934469bc0b895f39612f7e28 Makefile"
+ sha512sums="cd6d7f9699c439a97ee8504f1c5514d479c5366e005a91a797f5178a70bbdf61a29dab30662d983f4be12a73f50a444c1508c132c6be5a5ea52f3e7ce59ddfe0 irc.c
+ c8f7a54f0d0d34b5070aed5a544a2e4f6c4701a18c6884ba20516f6c4c3b7e1beec126772c4bd472d0028fc3cfa7c3f3ad1a83697bc493dfa5fa295273482af2 Makefile"
diff --git a/testing/irc.c/Makefile b/testing/irc.c/Makefile
new file mode 100644
index 0000000..1e7d9b7
--- /dev/null
+++ b/testing/irc.c/Makefile
@@ -0,0 +1,12 @@
+ # thanks c9x and Evil_Bob
+ BIN = irc
+
+ CFLAGS = -std=c99 -Os -D_POSIX_C_SOURCE=201112 -D_GNU_SOURCE -D_XOPEN_CURSES -D_XOPEN_SOURCE_EXTENDED=1 -D_BSD_SOURCE
+ LDFLAGS = -lncursesw
+
+ all: ${BIN}
+
+ clean:
+ rm -f ${BIN} *.o
+
+ .PHONY: all clean
--
2.8.3
---
Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---
Hi,
thank you for your contribution!
On ven, 2016-11-04 at 18:02 -0700, xcko shrdlu wrote: