diff options
author | Aki <please@ignore.pl> | 2023-01-17 22:46:04 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-17 22:46:04 +0100 |
commit | 445fc9b2c1ef3fbd4db7edc97ef92021acf08625 (patch) | |
tree | 5137e587897819685c969f4173f72478879aafc0 | |
parent | 1828f888890eb524bcc8c194bc3058fa1063d414 (diff) | |
download | arch-ignore-445fc9b2c1ef3fbd4db7edc97ef92021acf08625.zip arch-ignore-445fc9b2c1ef3fbd4db7edc97ef92021acf08625.tar.gz arch-ignore-445fc9b2c1ef3fbd4db7edc97ef92021acf08625.tar.bz2 |
Imported old butler-git package from standalone repository
-rw-r--r-- | butler-git/.SRCINFO | 19 | ||||
-rw-r--r-- | butler-git/.gitignore | 1 | ||||
-rw-r--r-- | butler-git/PKGBUILD | 53 | ||||
-rw-r--r-- | butler-git/butler.sh | 1 |
4 files changed, 74 insertions, 0 deletions
diff --git a/butler-git/.SRCINFO b/butler-git/.SRCINFO new file mode 100644 index 0000000..fb9c634 --- /dev/null +++ b/butler-git/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = butler-git + pkgdesc = Your happy little itch.io helper + pkgver = 15.21.0.r9.g50d55e90 + pkgrel = 1 + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = go>=1.6 + makedepends = nodejs + makedepends = npm + provides = butler + conflicts = butler + source = butler::git+https://github.com/itchio/butler.git + source = butler.sh + sha256sums = SKIP + sha256sums = cdafc6745e4d4fa012dbe04fcb803336f70b7a53a1ab6bdf100e0e3510ca9512 + +pkgname = butler-git diff --git a/butler-git/.gitignore b/butler-git/.gitignore new file mode 100644 index 0000000..2d498f6 --- /dev/null +++ b/butler-git/.gitignore @@ -0,0 +1 @@ +butler/ diff --git a/butler-git/PKGBUILD b/butler-git/PKGBUILD new file mode 100644 index 0000000..be4c026 --- /dev/null +++ b/butler-git/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Aki <please at ignore pl> + +pkgname=butler-git +_pkgname=butler +pkgver=15.21.0.r9.g50d55e90 +pkgrel=1 +license=('MIT') +pkgdesc='Your happy little itch.io helper' +makedepends=('git' 'go>=1.6' 'nodejs' 'npm') +arch=('i686' 'x86_64') +source=( + "${_pkgname}::git+https://github.com/itchio/butler.git" + "butler.sh" +) +sha256sums=( + 'SKIP' + 'cdafc6745e4d4fa012dbe04fcb803336f70b7a53a1ab6bdf100e0e3510ca9512' +) +provides=("${_pkgname}") +conflicts=("${_pkgname}") + + +_goarch() { + case "$1" in + i686) echo 386;; + x86_64) echo "amd64";; + *) return 1;; + esac +} + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' +} + + +build() { + export GOPATH="${srcdir}/go" + cd "${srcdir}/${_pkgname}" + npm install --production=false + node release/build.js --os linux --arch ${CARCH} +} + + +package() { + cd "${srcdir}" + install -Dm644 -t "${pkgdir}/etc/profile.d" butler.sh + cd "${_pkgname}" + install -Dm755 -t "${pkgdir}/usr/lib/${_pkgname}" "artifacts/linux-$(_goarch ${CARCH})/butler" + install -Dm755 -t "${pkgdir}/usr/lib/${_pkgname}" "artifacts/linux-$(_goarch ${CARCH})/7z.so" + install -Dm755 -t "${pkgdir}/usr/lib/${_pkgname}" "artifacts/linux-$(_goarch ${CARCH})/libc7zip.so" + install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" LICENSE +} diff --git a/butler-git/butler.sh b/butler-git/butler.sh new file mode 100644 index 0000000..b0a6de1 --- /dev/null +++ b/butler-git/butler.sh @@ -0,0 +1 @@ +append_path /usr/lib/butler |