aboutsummaryrefslogtreecommitdiffstats
path: root/libar2simplified
diff options
context:
space:
mode:
Diffstat (limited to 'libar2simplified')
-rw-r--r--libar2simplified/PKGBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/libar2simplified/PKGBUILD b/libar2simplified/PKGBUILD
index 168b66a..c5d6516 100644
--- a/libar2simplified/PKGBUILD
+++ b/libar2simplified/PKGBUILD
@@ -2,21 +2,26 @@
pkgbase=libar2simplified
pkgname=($pkgbase $pkgbase-doc $pkgbase-musl)
-pkgver=1.1.1
+pkgver=1.1.2
pkgrel=1
_pkgdesc="Facade for libar2"
pkgdesc="${_pkgdesc}"
arch=(i686 x86_64)
-url="https://github.com/maandree/libar2simplified"
+url="https://codeberg.org/maandree/libar2simplified"
license=('custom:ISC')
depends=()
checkdepends=(libar2 libar2-musl)
_compiler=gcc
makedepends=(libar2 libar2-musl ${_compiler})
source=($pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
-sha256sums=(05ea3f8f751f6efcb5f2717c683b10d926aac54f2254c0920c2ed7ce3b44be18)
+sha256sums=(22ab4baaae33561c7777068624e312c9334b02dad42daed3236aec4fb4d14115)
-build() {
+prepare () {
+ cd -- "$srcdir"
+ mv -- "$pkgbase" "$pkgbase-$pkgver"
+}
+
+build () {
cd -- "$srcdir"
cp -r -- "$pkgbase-$pkgver" "$pkgbase-$pkgver-musl"
cd -- "$pkgbase-$pkgver"
@@ -25,14 +30,14 @@ build() {
make PREFIX=/usr/lib/musl CC="musl-${_compiler} -std=c11"
}
-check() {
+check () {
cd -- "$srcdir/$pkgbase-$pkgver"
make check
cd -- "../$pkgbase-$pkgver-musl"
make CC="musl-${_compiler} -std=c11" check
}
-package_libar2simplified() {
+package_libar2simplified () {
pkgdesc="${_pkgdesc}"
depends=(libar2)
@@ -41,7 +46,7 @@ package_libar2simplified() {
rm -r -- "${pkgdir}/usr/share"
}
-package_libar2simplified-doc() {
+package_libar2simplified-doc () {
pkgdesc="${_pkgdesc} (documentation)"
cd -- "$srcdir/$pkgbase-$pkgver"
@@ -50,7 +55,7 @@ package_libar2simplified-doc() {
rm -r -- "${pkgdir}/usr/include"
}
-package_libar2simplified-musl() {
+package_libar2simplified-musl () {
pkgdesc="${_pkgdesc} (musl version)"
depends=(libar2-musl)