initial packaging of act utils

This commit is contained in:
Fabian Posch 2024-06-06 16:52:24 +02:00
commit ddf8994972
2 changed files with 55 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = act-utils-git
pkgdesc = Useful scripts for working with the ACT flow.
pkgver = 0.1.r6.51c421a
pkgrel = 1
url = https://github.com/asyncvlsi/utils
arch = x86_64
license = Apache-2.0
makedepends = git
makedepends = make
depends = act-core
depends = python
provides = act-utils
conflicts = act-utils
source = git+https://github.com/asyncvlsi/utils
sha512sums = SKIP
pkgname = act-utils-git

38
PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: Fabian Posch <aur@posch.tech>
_reponame=utils
_pkgname=act-${_reponame}
pkgname=${_pkgname}-git
_basever=0
_patchlvl=1
_gitversion=r6.51c421a
pkgver=${_basever}.${_patchlvl}.${_gitversion}
pkgrel=1
pkgdesc="Useful scripts for working with the ACT flow."
arch=('x86_64')
url="https://github.com/asyncvlsi/utils"
license=('Apache-2.0')
depends=('act-core' 'python')
makedepends=('git' 'make')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git+${url}")
sha512sums=("SKIP")
pkgver() {
cd ${_reponame}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
package() {
install -Dm644 ${srcdir}/${_reponame}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mkdir -p ${pkgdir}/opt/act-async/bin
mkdir -p ${pkgdir}/opt/act-async/conf/generic
cd ${srcdir}/${_reponame}
make INSTALL_OVERRIDE="${pkgdir}/opt/act-async/" install
rm -rf ${pkgdir}/opt/act-async/act
rm -rf ${pkgdir}/opt/act-async/conf
}