2 Commits 08ce25a1aa ... 60e995cc9b

Author SHA1 Message Date
  mithrandir 60e995cc9b cdb, vifm e toxcore 6 years ago
  mithrandir 45af5c1616 sory dude mi bed engrish is shieeeet 6 years ago
5 changed files with 110 additions and 2 deletions
  1. 4 2
      README.md
  2. 39 0
      cdb/APKBUILD
  3. 11 0
      cdb/fix-errno.patch
  4. 29 0
      toxcore/APKBUILD
  5. 27 0
      vifm/APKBUILD

+ 4 - 2
README.md

@@ -1,3 +1,5 @@
-APKBUILDS for Alpine Linux. 
+APKBUILDS for Alpine Linux
+===========================
+
 To build, simple run ```abuild -r```. 
-CC0 is only applied in my work.
+CC0 is valid to to my work only.

+ 39 - 0
cdb/APKBUILD

@@ -0,0 +1,39 @@
+# Contributor: sick <sick@rape.lol>
+# Maintainer: sick <sick@rape.lol>
+pkgname=cdb
+pkgver=0.75
+pkgrel=0
+pkgdesc="A fast, reliable, simple package for creating and reading constant databases"
+url="http://cr.yp.to/cdb.html"
+arch="all"
+license="Public Domain"
+depends=""
+makedepends="$depends"
+subpackages=""
+source="http://cr.yp.to/cdb/$pkgname-$pkgver.tar.gz
+	fix-errno.patch
+	"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+	default_prepare
+	sed -i 's:/usr/local:/usr:' "$builddir"/conf-home
+}
+	
+build() {
+	cd "$builddir"
+	make || return 1
+}
+
+#check() {
+#    cd "$builddir"
+#    ./cdb
+package() {
+	cd "$builddir"
+	mkdir -p $pkgdir/usr/bin
+	install -m0755 cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv \
+	cdbstats cdbtest $pkgdir/usr/bin/
+}
+
+sha512sums="6faeab91a77457348b58f685e81000b83fb609691317198a06284c5c62dee1e4d6138f90be1e727021f279d740169c175a21b23c96adb39a654e3f7fafdf36c0  cdb-0.75.tar.gz
+7ba7ad55133d545f6737e57339c9c6c96cfc603923b10e08ef344574f2004545bec1662a43bfbc2070c9dd120cbc92b69b2564c6cddc90c52fe77eb0b42ff34d  fix-errno.patch"

+ 11 - 0
cdb/fix-errno.patch

@@ -0,0 +1,11 @@
+--- cdb-0.75/error.h
++++ cdb-0.75/error.h
+@@ -1,7 +1,7 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+ 
+-extern int errno;
++#include <errno.h>
+ 
+ extern int error_intr;
+ extern int error_nomem;

+ 29 - 0
toxcore/APKBUILD

@@ -0,0 +1,29 @@
+# Contributor: sick <sick@rape.lol>
+# Maintainer sick <sick@rape.lol>
+pkgname=toxcore
+pkgver=0.1.10
+pkgrel=0
+pkgdesc="Encrypted peer-to-peer instant messenger protocol library"
+url="https://tox.chat"
+arch="all"
+license="GPL-3"
+depends="libsodium"
+makedepends="$depends-dev opus-dev libvpx-dev autoconf automake libtool" 
+subpackages="$pkgname-dev "
+source="c-$pkgname-$pkgver.tar.gz::https://github.com/TokTok/c-$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/c-$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+    ./autogen.sh
+    ./configure --prefix=/usr --enable-daemon || return 1
+    make || return 1
+
+}
+
+package() {
+	cd "$builddir"
+    make DESTDIR=$pkgdir install || return 1
+}
+
+sha512sums="2274346f941711579139c0dfb29cb916b04e6c3319ab6ebf99e4980d020b02e9fed6ae5edfebda98be58296bbe21ea02f441dc900ad54cd8873db0e6f02b8158  c-toxcore-0.1.10.tar.gz"

+ 27 - 0
vifm/APKBUILD

@@ -0,0 +1,27 @@
+# Contributor: sick <sick@rape.lol>
+# Maintainer: sick <sick@rape.lol>
+pkgname=vifm
+pkgver=0.9
+pkgrel=0
+pkgdesc="Ncurses based file manager with vi like keybindings"
+url="http://vifm.info/"
+arch="x86_64"
+license="GPL-2"
+depends="ncurses-libs"
+makedepends="ncurses-dev"
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+    ./configure --prefix=/usr --sysconfdir=/etc || return 1
+    make || return 1
+}
+
+package() {
+	cd "$builddir"
+    make DESTDIR=$pkgdir install || return 1
+}
+
+sha512sums="5ae2b03e672bd9a7f95a5c59141dabac8bc7946a4e307d6a3df70bdb52e1f7665b960a3d20709c811cbfbcf76f7836d23b5edb191968e5277fb705a291ab3a9a  vifm-0.9.tar.bz2"