Commit 4b6138a5 authored by Natanael Copa's avatar Natanael Copa

main/sic: upgrade to 1.2 and fix build for musl

parent 54151c46
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sic
pkgver=1.1
pkgrel=1
pkgver=1.2
pkgrel=0
pkgdesc="an extremely simple IRC client"
url="http://tools.suckless.org/sic"
arch="all"
license="GPL"
depends=""
subpackages="$pkgname-doc"
source="http://dl.suckless.org/tools/sic-$pkgver.tar.gz"
source="http://dl.suckless.org/tools/sic-$pkgver.tar.gz
musl-fix.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$srcdir/$pkgname-$pkgver"
cd "$_builddir"
make PREFIX=/usr || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
cd "$_builddir"
make DESTDIR="$pkgdir" PREFIX=/usr install
}
md5sums="856d0e5faa151ae9602713ee7d34a2d5 sic-1.1.tar.gz"
md5sums="eb099e790c3ce7866df50d3fe1a52c25 sic-1.2.tar.gz
216be8b79c23f4a5fa59a64ec06188af musl-fix.patch"
sha256sums="ac07f905995e13ba2c43912d7a035fbbe78a628d7ba1c256f4ca1372fb565185 sic-1.2.tar.gz
e6b089bf64a7ac8ce7c531698aaede0ba93064b8b7c052ab7f6a44b70673530c musl-fix.patch"
sha512sums="5659ed9d8a5986dda90dbe1155c27a5fd0ab4b1fcad2c1a20997c530bf03864e6c08bdeffc025c728629ab11872af6a1250761160b91f148dc37d77a49046dc9 sic-1.2.tar.gz
94d9dc44a1a33c67141db312004a2c9d2113223c921ae210a6451b1c0f408d93fff4b16049f49d393ab4ca3ffca3fb5fc62265ec6195317abfbb70abdcd8ad5e musl-fix.patch"
From d8e9e4a013196b98576a3a759b4b27c3edb2a0d2 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 4 Feb 2014 10:06:53 +0000
Subject: [PATCH] build fix for musl libc
It fixes the following compile error with musl libc:
sic.c:137:17: error: storage size of 'tv' isn't known
struct timeval tv;
^
---
sic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sic.c b/sic.c
index d93c2ec..e4bdb74 100644
--- a/sic.c
+++ b/sic.c
@@ -8,6 +8,8 @@
#include <time.h>
#include <unistd.h>
+#include <sys/time.h>
+
static char *host = "irc.oftc.net";
static char *port = "6667";
static char *password;
--
1.8.5.3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment