Skip to content
Snippets Groups Projects

testing/jshon: improve and move to community

Merged Jakub Jirutka requested to merge jirutka/aports:jshon into master
All threads resolved!
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
+ 6
3
@@ -8,10 +8,8 @@ url="http://kmkeen.com/jshon/"
@@ -8,10 +8,8 @@ url="http://kmkeen.com/jshon/"
arch="all"
arch="all"
license="MIT"
license="MIT"
makedepends="jansson-dev"
makedepends="jansson-dev"
options="!check" # No tests
subpackages="$pkgname-doc"
subpackages="$pkgname-doc"
source="
source="https://github.com/keenerd/jshon/archive/$pkgver/jshon-$pkgver.tar.gz
jshon-$pkgver.tar.gz::https://github.com/keenerd/jshon/archive/$pkgver.tar.gz
disable-werror.patch
disable-werror.patch
missing-typesh.patch
missing-typesh.patch
"
"
@@ -20,6 +18,11 @@ build() {
@@ -20,6 +18,11 @@ build() {
make
make
}
}
 
check() {
 
echo '{"a":1,"b":[true,false,null,"none"],"c":{"d":4,"e":5}}' > sample.json
 
[ "$(./jshon -F sample.json -k | xargs)" = 'a b c' ]
 
}
 
package() {
package() {
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
Loading