summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..3359554
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
1# Maintainer: syui <syui@users.noreply.github.com>
2pkgname=xq
3pkgver=0.1
4pkgrel=1
5pkgdesc="xml to json convert parser"
6arch=('x86_64' 'i686')
7url="https://github.com/syui/xq"
8options=('!strip' '!emptydirs')
9license=('MIT')
10source=("$url/releases/download/$pkgver/linux_386_$pkgname"
11 "$url/releases/download/$pkgver/linux_amd64_$pkgname")
12noextract=(${source[@]%%::*})
13sha1sums=('ec49fc225d79473b11790e79d7c1c57b3b829cff'
14 '883a2ec0dea0d449b34664367912af289d0b5943')
15
16package() {
17 mkdir -p ${srcdir}/${pkgname}-${pkgver}
18 cd "${srcdir}/${pkgname}-${pkgver}"
19
20 if [ "`uname -m`" = "x86_64" ];then
21 mv ../linux_amd64_$pkgname $pkgname
22 chmod +x $pkgname
23 fi
24
25 if [ "`uname -m`" = "i684" ];then
26 mv ../linux_386_$pkgname $pkgname
27 chmod +x $pkgname
28 fi
29
30 install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
31 #sudo install -Dm755 "$pkgdir/usr/bin/$pkgname" /usr/bin
32}
33
34# vim:set ts=2 sw=2 et: