From d3b7e10198b1d1d451bc72e26e7c8453e715eab3 Mon Sep 17 00:00:00 2001 From: TBK Date: Tue, 17 Mar 2020 16:21:22 +0100 Subject: [PATCH] Initial commit --- .SRCINFO | 15 +++++++++++++++ .gitignore | 4 ++++ PKGBUILD | 30 ++++++++++++++++++++++++++++++ README.md | 17 +++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD create mode 100644 README.md diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..63ba3c5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = atools + pkgdesc = APKBUILD and aports linter for Alpine Linux + pkgver = 19.0.3 + pkgrel = 1 + url = https://gitlab.alpinelinux.org/Leo/atools + arch = x86_64 + license = MIT + checkdepends = bats-core + makedepends = scdoc + makedepends = redo-c + source = atools-19.0.3.tar.gz::https://gitlab.alpinelinux.org/Leo/atools/-/archive/19.0.3/atools-19.0.3.tar.gz + sha256sums = ce4312fa86f72b3344b84c01e70d4bc1da36b015a22c4c83250906445d46408a + +pkgname = atools + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3401952 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/* +src/* +*.pkg.tar.xz +*.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..07150bd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: TBK +# Contributor: TBK + +pkgname=atools +pkgver=19.0.3 +pkgrel=1 +pkgdesc='APKBUILD and aports linter for Alpine Linux' +url='https://gitlab.alpinelinux.org/Leo/atools' +arch=('x86_64') +license=('MIT') +makedepends=('scdoc' 'redo-c') +checkdepends=('bats-core') +source=("$pkgname-$pkgver.tar.gz::https://gitlab.alpinelinux.org/Leo/atools/-/archive/$pkgver/atools-$pkgver.tar.gz") +sha256sums=('ce4312fa86f72b3344b84c01e70d4bc1da36b015a22c4c83250906445d46408a') +_builddir="$pkgname-$pkgver" + +build() { + cd "$_builddir" + redo build +} + +check() { + cd "$_builddir" + redo check +} + +package() { + cd "$_builddir" + DESTDIR="$pkgdir" redo install +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..21510d8 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# atools +Arch User Repository atools - APKBUILD and aports linter for Alpine Linux + +## Update package + +* Update package version in PKGBUILD +* Generate new checksums with + +```$ updpkgsums``` + +* Test install + +```$ makepkg -si``` + +* Update .SRCINFO + +```$ makepkg --printsrcinfo > .SRCINFO```