1. turkbits
  2. spm-packages

Commits

turkbits  committed 31cf88a

adding gsl and bogofilter packages

  • Participants
  • Parent commits 541f950
  • Branches master

Comments (0)

Files changed (2)

File bogofilter/SRCBUILD

View file
+# Maintainer: turkbits <turkbits@turkbits.net>
+
+version=1.2.4
+description="A fast Bayesian spam filtering tool"
+depends=('db' 'perl' 'gsl')
+backup=('etc/bogofilter/bogofilter.cf')
+sources=(http://sourceforge.net/projects/bogofilter/files/bogofilter-current/bogofilter-$version/bogofilter-$version.tar.bz2)
+
+src_compile() {
+  cd "$SOURCE_DIR/bogofilter-$version"
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc/bogofilter  \
+              --localstatedir=/var \
+              --enable-transactions
+  make
+}
+
+src_install() {
+  cd "$SOURCE_DIR/bogofilter-$version"
+  make DESTDIR="$INSTALL_DIR" install
+
+  mv "$INSTALL_DIR/etc/bogofilter/bogofilter.cf.example" "$INSTALL_DIR/etc/bogofilter/bogofilter.cf"
+
+  install -dm755 "$INSTALL_DIR/usr/share/bogofilter/contrib"
+  install -m644 contrib/* "$INSTALL_DIR/usr/share/bogofilter/contrib/"
+}

File gsl/SRCBUILD

View file
+# Maintainer: turkbits <turkbits@turkbits.net>
+
+version=1.16
+description="The GNU Scientific Library (GSL) is a modern numerical library for C and C++ programmers"
+sources=("ftp://ftp.gnu.org/gnu/gsl/gsl-$version.tar.gz")
+depends=('glibc' 'bash')
+
+src_compile() {
+    #unset LDFLAGS
+    cd "$SOURCE_DIR/gsl-$version"
+    ./configure --prefix=/usr --disable-static
+    make
+}
+
+src_check() {
+    cd "$SOURCE_DIR/gsl-$version"
+    make check
+}
+
+src_install() {
+    cd "$SOURCE_DIR/gsl-$version"
+    make DESTDIR="$INSTALL_DIR" install
+}