diff options
author | syui | 2018-06-10 14:01:54 +0900 |
---|---|---|
committer | syui | 2018-06-10 14:01:54 +0900 |
commit | 95fd0d6f59ee6552307a92dc9cd68f61b88f6fb5 (patch) | |
tree | 78babd8a1f3e4aeaff739cd6258bd2867080f78f /PKGBUILD | |
download | packages-95fd0d6f59ee6552307a92dc9cd68f61b88f6fb5.tar.gz packages-95fd0d6f59ee6552307a92dc9cd68f61b88f6fb5.tar.bz2 packages-95fd0d6f59ee6552307a92dc9cd68f61b88f6fb5.zip |
first
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
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> | ||
2 | pkgname=xq | ||
3 | pkgver=0.1 | ||
4 | pkgrel=1 | ||
5 | pkgdesc="xml to json convert parser" | ||
6 | arch=('x86_64' 'i686') | ||
7 | url="https://github.com/syui/xq" | ||
8 | options=('!strip' '!emptydirs') | ||
9 | license=('MIT') | ||
10 | source=("$url/releases/download/$pkgver/linux_386_$pkgname" | ||
11 | "$url/releases/download/$pkgver/linux_amd64_$pkgname") | ||
12 | noextract=(${source[@]%%::*}) | ||
13 | sha1sums=('ec49fc225d79473b11790e79d7c1c57b3b829cff' | ||
14 | '883a2ec0dea0d449b34664367912af289d0b5943') | ||
15 | |||
16 | package() { | ||
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: | ||