summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 25 insertions, 16 deletions
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}"
}