summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-10-14 19:49:15 -0400
committerAndrew Sun2018-10-14 19:49:15 -0400
commit784f58469d51bce13dc313de7200a853d7b9ac43 (patch)
treed1f5bd4e749c13371d2a3f7b524798a2ab2213d3
parent9d3912504d8625108edae497ecda387dc2654c05 (diff)
downloadaur-784f58469d51bce13dc313de7200a853d7b9ac43.tar.gz
aesfix: some package fixes
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD41
2 files changed, 29 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9c6d55da191..f6d93d08fe5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = aesfix
pkgdesc = Error-correction for AES key schedules
pkgver = 1.0.1
- pkgrel = 1
+ pkgrel = 2
url = https://citp.princeton.edu/research/memory/
- arch = any
+ arch = x86_64
license = BSD
+ depends = gcc-libs
source = http://citpsite.s3-website-us-east-1.amazonaws.com/oldsite-htdocs/memory-content/src/aesfix-1.0.1.tar.gz
- md5sums = f89fb82b69475bfa31f1919aaca5a58b
+ sha256sums = 7b177e876caee6aae48f0123102f11df6594a738483f9a47f2c76fe81cc045d4
pkgname = aesfix
diff --git a/PKGBUILD b/PKGBUILD
index 9b7b8b83bbd..6831bbc9d01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,34 @@
-# Maintainer: Christopher Loen <christopherloen at gmail dot com>
-pkgname='aesfix'
-pkgver='1.0.1'
-pkgrel=1
+# Maintainer: Andrew Sun <adsun701@gmail.com>
+# Contributor: Christopher Loen <christopherloen at gmail dot com>
+
+pkgname=aesfix
+pkgver=1.0.1
+pkgrel=2
pkgdesc='Error-correction for AES key schedules'
-arch=('any')
+arch=('x86_64')
url='https://citp.princeton.edu/research/memory/'
license=('BSD')
-source=('http://citpsite.s3-website-us-east-1.amazonaws.com/oldsite-htdocs/memory-content/src/aesfix-1.0.1.tar.gz')
-md5sums=('f89fb82b69475bfa31f1919aaca5a58b')
+depends=('gcc-libs')
+source=("http://citpsite.s3-website-us-east-1.amazonaws.com/oldsite-htdocs/memory-content/src/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('7b177e876caee6aae48f0123102f11df6594a738483f9a47f2c76fe81cc045d4')
build() {
- cd "${srcdir}/${pkgname}"
- make
+ cd "${srcdir}/${pkgname}"
+ make
}
package() {
- cd "${srcdir}/${pkgname}"
- install -dm755 "${pkgdir}/usr/share/${pkgname}"
- install -dm755 "${pkgdir}/usr/bin/"
- install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
- cp -rf * "${pkgdir}/usr/share/${pkgname}/"
- cp LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
- ln -s "/usr/share/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+ cd "${srcdir}/${pkgname}"
+
+ # Base directories
+ mkdir -p "${pkgdir}/usr/bin"
+ mkdir -p "${pkgdir}/usr/share/${pkgname}"
+ mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
+
+ # Docs
+ cp -rf samples "${pkgdir}/usr/share/${pkgname}/"
+ cp LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ # Executable
+ install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
}