diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d445d415203 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = bobibo + pkgdesc = A cli-app, convert pictures to ascii arts. + pkgver = 1.1.0 + pkgrel = 1 + url = https://github.com/orzation/bobibo + arch = x86_64 + license = GPL3 + makedepends = go>=1.17 + makedepends = upx + optdepends = sudo: privilege elevation + optdepends = doas: privilege elevation + source = bobibo-1.1.0.tar.gz::https://github.com/orzation/bobibo/archive/v1.1.0.tar.gz + sha256sums = 8aba2b783c8d6812ba893d8ac9fb867b74796d9df9f2a22cfd3aadface4f0eb8 + +pkgname = bobibo diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..69b202e52762 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: mosquito <mosquito@email.cn> +pkgname=bobibo +pkgver=1.1.0 +pkgrel=1 +pkgdesc="A cli-app, convert pictures to ascii arts." +arch=("x86_64") +url="https://github.com/orzation/bobibo" +license=('GPL3') +makedepends=('go>=1.17' 'upx') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/orzation/bobibo/archive/v${pkgver}.tar.gz") +sha256sums=('8aba2b783c8d6812ba893d8ac9fb867b74796d9df9f2a22cfd3aadface4f0eb8') + +optdepends=( + 'sudo: privilege elevation' + 'doas: privilege elevation' +) + +build() { + export GOPATH="$srcdir"/gopath + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_ENABLED=1 + + cd "$srcdir/$pkgname-$pkgver/cli" + make build +} + +package() { + cd "$srcdir/$pkgname-$pkgver/cli" + make DESTDIR="$pkgdir" install +} |