chore: moved archlinux pkgbuild script

This commit is contained in:
David Allen 2025-08-24 20:33:05 -06:00
parent a8e9ed95e6
commit 5767a8fd47
Signed by: towk
GPG key ID: 0430CDBE22619155

34
build/archlinux/PKGBUILD Normal file
View file

@ -0,0 +1,34 @@
# Maintainer: David J. Allen <davidallendj@gmail.com>
pkgname=makeshift
pkgver=v0.1.0alpha
pkgrel=1
pkgdesc="Extensible file cobbler"
arch=("x86_64")
url="https://git.towk2.me/towk/makeshift"
license=('MIT')
# groups=("towk")
provides=('makeshift')
conflicts=('makeshift')
# https://git.towk2.me/towk/makeshift/releases/download/v0.1.0-alpha/makeshift
source_x86_64=(
"${url}/releases/download/v0.1.0-alpha/${pkgname}.tar.gz"
)
sha256sums_x86_64=('28e10f1e39757bbdc3a503de74dd4d8c610d9c78e89665fb42012e8ef7834d0f')
# we don't need to set pkgver just yet for the pre-release version...
# pkgver() {
# cd "$srcdir" || exit
# printf "%s" "$(git describe --tags --abbrev=0)"
# }
package() {
cd "$srcdir/" || exit
# install the binary to /usr/bin
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/lib/${pkgname}"
install -m755 makeshift "${pkgdir}/usr/bin/makeshift"
# install plugins to /usr/lib
install -m755 *.so "${pkgdir}/usr/lib/${pkgname}"
}