diff --git a/.gitattributes b/.gitattributes index 1ff0c42..bb6c385 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,7 @@ # Set default behavior to automatically normalize line endings. ############################################################################### * text=auto +PKGBUILD* text eol=lf ############################################################################### # Set default behavior for command prompt diff. diff --git a/LICENSE-PKGBUILD b/LICENSE-PKGBUILD new file mode 100644 index 0000000..282b693 --- /dev/null +++ b/LICENSE-PKGBUILD @@ -0,0 +1,12 @@ +Copyright 2024 Arch Linux Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/PKGBUILD-REL b/PKGBUILD-REL new file mode 100644 index 0000000..e1bc001 --- /dev/null +++ b/PKGBUILD-REL @@ -0,0 +1,17 @@ +# Maintainer: Aptivi +pkgname=bskyid +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Unofficial application to fetch your BlueSky ID" +arch=(any) +url="https://aptivi.github.io" +license=('GPL-3.0-or-later') +depends=('bash') +options=('!strip') +source=("${pkgname}::git+https://github.com/Aptivi/BskyId#tag=v1.0.1") +sha256sums=('SKIP') + +package() { + cd "${pkgname}" + make install DESTDIR=$pkgdir +} diff --git a/PKGBUILD-VCS b/PKGBUILD-VCS new file mode 100644 index 0000000..b9cd4c2 --- /dev/null +++ b/PKGBUILD-VCS @@ -0,0 +1,24 @@ +# Maintainer: Aptivi +pkgname=bskyid-git +pkgver=v1.0.1.r0.899856d +pkgrel=1 +pkgdesc="Unofficial application to fetch your BlueSky ID" +arch=(any) +url="https://aptivi.github.io" +license=('GPL-3.0-or-later') +depends=('bash') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +options=('!strip') +source=("${pkgname}::git+https://github.com/Aptivi/BskyId#branch=main") +sha256sums=('SKIP') + +pkgver() { + cd "${pkgname}" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +package() { + cd "${pkgname}" + make install DESTDIR=$pkgdir +}