diff options
-rw-r--r-- | java/java-json-android/PKGBUILD | 50 | ||||
-rw-r--r-- | libre/parabola-keyring/PKGBUILD | 6 | ||||
-rw-r--r-- | ~brendan/guile/PKGBUILD | 32 | ||||
-rw-r--r-- | ~brendan/guile/guile.install | 23 |
4 files changed, 53 insertions, 58 deletions
diff --git a/java/java-json-android/PKGBUILD b/java/java-json-android/PKGBUILD new file mode 100644 index 000000000..3b0a08195 --- /dev/null +++ b/java/java-json-android/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-json-android +_pkgver=4.2.2_r1 +pkgdesc="Java org.json implementation developed as part of Android's libcore" +url="https://android.googlesource.com/platform/libcore/" +license=(Apache2) + +pkgver=${_pkgver//_/.} +provides=(java-json) +conflicts=(java-json) + +pkgrel=1 +arch=(any) + +depends=(java-runtime) +makedepends=(java-environment junit) + +source=("libre://android-libcore-$_pkgver.tar.gz") +md5sums=('367769bb9d7fe571ff4e1e82b99e99ed') + +mkdepends=(git) +mksource=("android-libcore-$_pkgver::git+https://android.googlesource.com/platform/libcore/#tag=android-${_pkgver}") +mkmd5sums=('SKIP') + +build() { + cd "$srcdir"/android-libcore-$_pkgver + sed 11q < NOTICE > json/NOTICE + cd json/src/main/java + javac org/json/*.java + jar cf json.jar org/json/*.class +} + +check() { + cd "$srcdir"/android-libcore-$_pkgver/json/src/test/java + + # disable test for known bug: + sed -i 's/test64BitHexValues()/x&/' org/json/ParsingTest.java + + local cp="/usr/share/java/junit.jar:../../main/java/json.jar" + javac -cp "$cp" org/json/*.java + printf '%s\n' org/json/*.java | sed 's|/|.|g;s|\.java$||' > tests.txt + java -cp "$cp:." org.junit.runner.JUnitCore $(cat tests.txt) +} + +package() { + cd "$srcdir"/android-libcore-$_pkgver/json + install -Dm644 NOTICE "pkgdir"/usr/share/licenses/$pkgname + install -Dm644 src/main/java/json.jar "pkgdir"/usr/share/java/json.jar +} diff --git a/libre/parabola-keyring/PKGBUILD b/libre/parabola-keyring/PKGBUILD index d5a1e561d..d2c38b7d6 100644 --- a/libre/parabola-keyring/PKGBUILD +++ b/libre/parabola-keyring/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: André Silva <emulatorman@lavabit.com> pkgname=parabola-keyring -pkgver=$(LC_ALL=C date -u +%Y%m%d) +pkgver=$(LC_ALL=C date -u +%Y%m%d).1 pkgrel=1 pkgdesc='Parabola GNU/Linux-libre PGP keyring' arch=('any') @@ -15,5 +15,5 @@ package() { cd "${srcdir}/${pkgname}-${pkgver}" make PREFIX=/usr DESTDIR=${pkgdir} install } -md5sums=('ad747cf1f710e5962aa6b0931fcb580f' - 'c1030ca1c960d2ee6cfe11d798a7b471') +md5sums=('007c35459478f86484f66323bf90b1e0' + 'SKIP') diff --git a/~brendan/guile/PKGBUILD b/~brendan/guile/PKGBUILD deleted file mode 100644 index af8827563..000000000 --- a/~brendan/guile/PKGBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Patrick McCarty <pnorcks at gmail dot com> -# Contributor: Emmanuel 'guinness' Boudreault -# Parabola Maintainer: Brendan Tildesley (brendyn) -# -# This is `guile-devel' from AUR, with very little changes. -pkgname=guile -pkgver=2.0.5 -pkgrel=1 -pkgdesc="GNU Ubiquitous Intelligent Language for Extensions - a portable, embeddable Scheme implementation written in C" -url="http://www.gnu.org/software/guile/" -arch=('i686' 'x86_64') -license=('GPL') -depends=('gmp>=4.3.1' 'libtool' 'ncurses>=5.7' 'texinfo' - 'libunistring' 'gc' 'libffi') -conflicts=('guile' 'guile-git') -provides=("guile=$pkgver") -install=guile.install -options=('!libtool') -source=(ftp://ftp.gnu.org/pub/gnu/guile/guile-${pkgver}.tar.gz) -sha256sums=('2a026ea6cdbc51ca71bcd9787839debfa45ac5db1e26dc00b30ca9b128b10956') - -build() { - cd "${srcdir}/guile-${pkgver}" - - ./configure --prefix=/usr - make LDFLAGS+="-lpthread" -} - -package() { - cd "${srcdir}/guile-${pkgver}" - make DESTDIR="${pkgdir}" install -} diff --git a/~brendan/guile/guile.install b/~brendan/guile/guile.install deleted file mode 100644 index ed113ab8f..000000000 --- a/~brendan/guile/guile.install +++ /dev/null @@ -1,23 +0,0 @@ -infodir=usr/share/info -filelist=(guile.info - r5rs.info) - -post_install() { - [ -x usr/bin/install-info ] || return 0 - for file in ${filelist[@]}; do - install-info $infodir/$file $infodir/dir 2> /dev/null - done -} - -post_upgrade() { - post_install $1 -} - -pre_remove() { - [ -x usr/bin/install-info ] || return 0 - for file in ${filelist[@]}; do - install-info --delete $infodir/$file $infodir/dir 2> /dev/null - done -} - -# vim:set ts=2 sw=2 et: |